TypeError: fs.existsSync is not a function electron

TypeError: fs.existsSync is not a function

Remote module using the above error occurs in the rendering process, after Baidu found together in front of the window on the line as long as the require, they should be bound electron in the top window object
const {BrowserWindow} = window.require ( ' electron'). remote;

Published 15 original articles · won praise 4 · views 10000 +

Guess you like

Origin blog.csdn.net/wwl901215/article/details/104231313