Electron报错: ReferenceError: require is not defined
突然报这个错,网上很多说 要设置 nodeIntegration:true,然而我这并不起作用, 直到在stackoverflow看到一条评论: All you need to do is add contextIsolation: false after nodeIntegration: true in the webPreferences object, 试了下,果然就没问题了,意思就是在nodeIntegration:true 后面加上 contextIsolation: false