electron报错:The default value of app.allowRendererProcessReuse is deprecated, it is currently “false”. It will change to be “true” in Electron 9

electron报错:The default value of app.allowRendererProcessReuse is deprecated, it is currently "false". It will change to be "true" in Electron 9.
如何解决呢?
在启动脚本index.js(启动脚本是package.json中main字段的值)中加入下面这行代码:

app.allowRendererProcessReuse = true;

然后重新运行一下,就不会报错了。

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: