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;