Electron 踩坑记录- require is not defined
从 github 上拉取 electron-sample-apps 后,运行 electron printing, 出现如下报错信息

解决方案
在 main.js 中增加 nodeIntegration: true 配置即可

欢迎交流,QQ: 997494167
从 github 上拉取 electron-sample-apps 后,运行 electron printing, 出现如下报错信息

在 main.js 中增加 nodeIntegration: true 配置即可
