请问 electron 中引入node的包,报错怎么办?

看有人说加这个就行了,可我还是会报错怎么办?

解决了

webPreferences: {
nodeIntegration: true, //设置开启nodejs环境
contextIsolation: false,
}