serialport / node-serialport

Access serial ports with JavaScript. Linux, OSX and Windows. Welcome your robotic JavaScript overlords. Better yet, program them!

Home Page:https://serialport.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

After packing with electron, the running program reported an error that the module could not be found

CaoXinHao opened this issue · comments

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:
image

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

I had the same problem.Has the problem been solved now?

I have a problem with pnpm, which is going to have a problem in electron. I can change yarn

我有同样的问题。现在问题解决了吗?