After packing with electron, the running program reported an error that the module could not be found
CaoXinHao opened this issue · comments
CaoXinHao commented
SerialPort Version
12.0.0
Node Version
16.14.1
Electron Version
28.2.1
Platform
No response
Architecture
No response
Hardware or chipset of serialport
No response
What steps will reproduce the bug?
My project environment: pnpm + vite5 + electron-builder24.13.3
After packaging with electron-builder, running an error occurred:
I tried to install the missing module and found that all the serialport dependencies were missing
What happens?
The packaged exe cannot be opened
What should have happened?
Normal open
Additional information
No response
DaYao0704 commented
I had the same problem.Has the problem been solved now?
CaoXinHao commented
I have a problem with pnpm, which is going to have a problem in electron. I can change yarn
我有同样的问题。现在问题解决了吗?