Comments (4)
可能是electron安装失败,可以参考配置:https://github.com/electron-vite/electron-vite-react/blob/main/.npmrc#L6
from electron-vite-vue.
可能是electron安装失败,可以参考配置:https://github.com/electron-vite/electron-vite-react/blob/main/.npmrc#L6
electron安装是正常的,只是渲染进程的ipcRenderer会报错,应该是框架中自带的preload.ts的实现有问题,如下图部分
作者只是遍历了自有属性,而从Electron29开始,不知道什么原因,ipcRenderer的方法是由上层原型继承而来,从而导致了遍历不到方法
from electron-vite-vue.
今天 nuc 后出现了 同样的问题.
from electron-vite-vue.
我写了一个类型安全的IPC库,可以看看
from electron-vite-vue.
Related Issues (20)
- [Help] Unsuccessful to integrate TypeORM HOT 1
- 为什么不用electronforge HOT 2
- [Help] 求助 在 mac 上 无法使用vscode debug HOT 1
- 环境变量无效 HOT 1
- [Help] support of jsx HOT 4
- [Help] 兼容win7的版本 HOT 1
- [Help] 如何在根目录没有index.html的情况下正常构建 HOT 1
- [Help] 如何在vue中使用Web Worker
- [Help] An error occurred while installing dependencieslp wanted report HOT 1
- [Question] 后续打包如何换成Electron Forge HOT 2
- 你好,在这个项目模板中怎么做窗口之间的通信呢? HOT 5
- 打包构建时报错 npm run build:win HOT 10
- 麻烦帮忙看一下。在生产环境启动后,页面空白。在开发环境是没问题的。 HOT 4
- [Help] windows安装包可以支持多语言吗 HOT 2
- 打包electron报x509: certificate has expired or is not yet valid HOT 2
- [Bug] The process not found. When closing app. HOT 1
- How to pack? HOT 3
- how is work HOT 2
- [Help] mysql2这个npm包无法被排除构建 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from electron-vite-vue.