Dlouxgit

Results 1 comments of Dlouxgit

我尝试了 git pull 和 npx create-vite-electron 重新下载模板, 仍然会报错,一般模块都是没有问题的,只有这个模块(功能是调用串口),我只在 main.ts 加上一行 const Serialport = require('serialport') 后打包,打开 win-unpacked 下的 .exe 文件就会出现这样的报错。 如果我改用 import Serialport from 'serialport' 报错会变成 ![image](https://user-images.githubusercontent.com/57781857/109793199-4feb1880-7c4f-11eb-9258-d2e3feb3f491.png)