vue-cli-plugin-electron-builder
vue-cli-plugin-electron-builder copied to clipboard
serialport module works on Linux but can't cross-compile for Windows
Describe the bug When compiling a vue-cli-pl...-project for Windows via the suggested Docker-approach on a Ubuntu at https://www.electron.build/multi-platform-build.html#build-electron-app-using-docker-on-a-local-machine - it looks like it compiled everything alright, but then, it doesn't work on Windows.
I'm compiling for Windows using yarn run electron:build --win
.
I'm wondering if it's normal that it does not use any prebuilt packages, but rather tries to rebuild them:
As soon as serialport is needed, the following error appears:
I'm sorry if this is the wrong place to ask but I ran out of ideas on how to fix this.
Files/info that might be helpful:
- package.json
- vue.config.js
- Node v14.19.3
- NPM v6.14.17
- yarn v1.22.19
- Ubuntu 20.04