本地运行正常,打包后找不到electron-vite内部引入的包模块 #440
Replies: 7 comments
-
https://cn.electron-vite.org/guide/troubleshooting#%E5%88%86%E5%8F%91 |
Beta Was this translation helpful? Give feedback.
-
@alex8088 我使用的是cnpm,而且提示缺失的包,是我引用的包内部又引用的其他包 |
Beta Was this translation helpful? Give feedback.
-
不能用cnpm,请改用npm |
Beta Was this translation helpful? Give feedback.
-
还是不行,换node版本,npm,pnpm,yarn都不行,预安装的时候就卡死了,cnpm 是能把包安上,但打包就出问题了。不支持sqlite和mysql2 |
Beta Was this translation helpful? Give feedback.
-
不能cnpm,cnpm都是link方式,改用其他包管理器,网路问题 |
Beta Was this translation helpful? Give feedback.
-
原生模块都需要根据electron版本重新编译,你的环境不支持,自行检索 |
Beta Was this translation helpful? Give feedback.
-
替换为 yarn即可 |
Beta Was this translation helpful? Give feedback.
-
bindings file-uri-to-path sqlstr ...等等,包太多了,安不完,而且只有打包启动才提示缺少什么包
Beta Was this translation helpful? Give feedback.
All reactions