看有人说加这个就行了,可我还是会报错怎么办?
解决了
webPreferences: {nodeIntegration: true, //设置开启nodejs环境contextIsolation: false,}