We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
今天Electron更新了29.0.0版本,我在项目中同步升级了一下,导致了渲染进程报错,具体报错如图
The text was updated successfully, but these errors were encountered:
可能是electron安装失败,可以参考配置:https://github.com/electron-vite/electron-vite-react/blob/main/.npmrc#L6
Sorry, something went wrong.
electron安装是正常的,只是渲染进程的ipcRenderer会报错,应该是框架中自带的preload.ts的实现有问题,如下图部分 作者只是遍历了自有属性,而从Electron29开始,不知道什么原因,ipcRenderer的方法是由上层原型继承而来,从而导致了遍历不到方法
今天 nuc 后出现了 同样的问题.
原因:https://www.electronjs.org/blog/electron-29-0#behavior-changed-ipcrenderer-can-no-longer-be-sent-over-the-contextbridge
我写了一个类型安全的IPC库,可以看看
feat: upgrade to electron@29 #467
a9952f1
No branches or pull requests
今天Electron更新了29.0.0版本,我在项目中同步升级了一下,导致了渲染进程报错,具体报错如图

The text was updated successfully, but these errors were encountered: