Closed TheClashFruit closed 4 years ago
Same error here, same setup
EDIT : Found the solution Add 'enableRemoteModule = true' to webPreferences of mainWindow like
const mainWindow = new BrowserWindow({
width: 800,
height: 600,
webPreferences: {
preload: path.join(__dirname, 'preload.js'),
enableRemoteModule: true // <-- add this line
},
frame: false
})
#
Same error here, same setup
EDIT : Found the solution Add 'enableRemoteModule = true' to webPreferences of mainWindow like
const mainWindow = new BrowserWindow({ width: 800, height: 600, webPreferences: { preload: path.join(__dirname, 'preload.js'), enableRemoteModule: true // <-- add this line }, frame: false })
This is a real solution
The remote module will be deprecated in a future release though.
Error:
Code: