umbrella22 / electron-vite-template

This project is a vue3 + Vite + electron project template composed of Vite and rollup. It has the same functions as my previous electron+Vue+template project
Other
398 stars 108 forks source link

编译后不能运行,提示缺少模块 #93

Closed gkey02 closed 1 year ago

gkey02 commented 1 year ago

更新后编译,没有处理依赖包,依赖的包没有打包,运行时提示缺少依赖模块。 我没研究该项目的打包原理,依赖处理不应该是打包程序处理的吗,不知道为啥会存在这种错误。

umbrella22 commented 1 year ago

emm,不太明白缺少依赖包的意思,有截图吗

gkey02 commented 1 year ago

emm,抱歉呢,仔细读了一遍可能确实没表达清楚,那个就是生成的exe包没有解析深度依赖,只拷贝了package.json添加的包,附图:

微信截图_20230422004539 微信截图_20230422004608
umbrella22 commented 1 year ago

emm这个稍后我使用windows系统看一看吧,macos上并没有复现这个问题,当然如果可以的话,请使用yarn作为这个项目的包管理器,pnpm因为我没有为它创建lock文件,可能会因为一些依赖更新导致该问题

umbrella22 commented 1 year ago

很抱歉我在windows中也没有复现该问题,暂时关闭该问题,若有相同问题请重新开启