electron-vue报错Uncaught ReferenceError: module is not defined
出现这种错误的时候,在构造BrowserWindow的地方加上webPreferences参数new BrowserWindow({webPreferences: {nodeIntegration: true}})参考的https://stackoverflow.com/questions/55093700/electron-5-0-0-uncaught-referenceerror-requir
·
出现这种错误的时候,在构造BrowserWindow的地方加上webPreferences参数
new BrowserWindow({
webPreferences: {
nodeIntegration: true,
enableRemoteModule: true // 可能报错Uncaught TypeError: Cannot read property 'app' of undefined at new ElectronStore
}
})
参考的javascript - electron 5.0.0 "Uncaught ReferenceError: require is not defined" - Stack Overflow
更多推荐
已为社区贡献15条内容
所有评论(0)