Michael

Results 8 comments of Michael

> Are you sure, you have included `nodeIntegration: true` in `webPreferences` when creating the BrowserWindow? According to [the docs](https://www.electronjs.org/docs/latest/tutorial/sandbox#preload-scripts) only these few modules these available in the preload script: >...

看样子还真是个Bug,我记得vue2的项目是用id传没问题的😂

@shier112 是的,就是不支持顶层await

@WorldToCode 我试了一下,在外部函数使用 async await是可以,但是你在引用的页面直接执行这个外部函数,是同步执行的,得到的结果是一个promise,还没拿到最终的结果,必须要使用异步才行

同样的问题,切换到5.2.2版本就没报错了

> I am not sure if it is the same issue but the issue title is exactly about that. > > Here you can find a minimal reproducible issue when...

> 现在都不支持Web 看了,你怎么还能用? 一直都可以啊,是你的课不支持吧