首页 > 其他 > 详细

解决: Uncaught ReferenceError: process is not defined

时间:2021-09-06 01:26:21      阅读:35      评论:0      收藏:0      [点我收藏+]

 


Uncaught ReferenceError: process is not defined

发现许多博客只是添加了
nodeIntegration: true,
1
仍然会报这个问题


解决办法
# 再添加一行
contextIsolation: false
1
2
# 完整代码
const mainWindow = new BrowserWindow({
width: 800,
height: 600,
webPreferences: {
preload: path.join(__dirname, ‘preload.js‘),
// nodeIntegration: true
nodeIntegration: true,
contextIsolation: false
}
})

原文链接:https://blog.csdn.net/qq_41685731/article/details/115176424

解决: Uncaught ReferenceError: process is not defined

原文:https://www.cnblogs.com/onesea/p/15227739.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!