-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incompatibility with node-serialport (bindings.node initialization failed) #3696
Comments
Think I have similar issue #3736 |
Uff I have the same issue... I am on macOS though and I used the vue-cli plugin to start |
Please try 21.0.11 |
Thanks for the quick reply, I was using vue-cli-plugin-electron-builder, the solution in my case was to mark serialport as external for the builder
|
Hi @s00500, I encounter the same problem as you but when I apply your vue.config.js I get the following error:
As I understood electron-builder will handle all the rebuilding for electron. Do you or somebody else know the answer to this error? |
install electron-rebuild and run |
Thanks, it works :) |
Version: 20.38.5
Target: Windows
@serialport/bindings version v2.0.7
I'm using proton-native, which integrates with electron-builder, and initially filed an issue there, but the author said to file an issue here instead.
Please see the issue kusti8/proton-native#196 for screenshots of the error.
There is an example project here: https://github.com/kfatehi/proton-native-serialport-issue
After
npm install
just runnpm run dist
to create the broken exe reproducing the error.I also cross-posted in a comment on node-serialport and got a response indicating that serialport project plans to switch to N-API in April, which may be the proper solution to this issue.
The text was updated successfully, but these errors were encountered: