-
-
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
install-app-deps compiles to wrong node module version #4012
Comments
Please use 21.0.7 |
Downgrading to v21.0.7 didn't fix this issue for me, but I did find a workaround, in case anyone is looking for one. I did notice that running
If you copy that file over to the Then electron-builder will ignore it and leave your version intact (silently - which is a bit worrying), which should allow things to work :) It's really stupid and inconvenient, but it's the only thing I got to work for packaging the application, and I really needed to ship today so there you go. 🤷♂️ |
21.1.1 doesn't appear to fix this issue for me. It definitely seems that the wrong thing or nothing(?) is being compiled.
(note the date)
No output seems pretty suss to me. I think this is working in Electron 4 because it has previously used |
update |
Description
Working on a project using serialport (through johnny-five), code works perfectly after using
./node_modules/.bin/electron-rebuild
, but runningelectron-builder install-app-deps
seems to compile serialport to node module version 47, well behind the desired version of 70. It breaks the app both in development and after packaging.I also tried packaging the app after using just electron-rebuild, but this results in the exact same error.
Raw Errors
The error in development without using electron-rebuild or install-app-deps (72->20):
The error in development after adding install-app-deps as postinstall script (47->70):
The error after packaging, using electron-rebuild or install-app-deps (47->70):
Other relevant versions
Node 12.5.0
yarn 1.16.0
electron 5.0.6
electron-rebuild 1.8.5
serialport 7.1.5
johnny-five 1.1.0
The text was updated successfully, but these errors were encountered: