-
-
Notifications
You must be signed in to change notification settings - Fork 487
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
Electron 9 builds are failing #1700
Comments
Please fill out the bug template. Once this happens and we determine it's a bug, I'll reopen this. |
Here you go, feel free to re-open and, most importantly, make Forge forging again :) |
Use
|
"npm update --depth 100 node-abi" didn't worked for me, since process was just hanging when I tried to run this command. Then I installed node-abi as dependency and was able to launch app in dev mode with "electron-forge start" commant. BUT "electron-forge make" still failing with the same error: "Could not detect abi for version 9.0.0 and runtime electron." on "Preparing native dependencies" step. As I recall, last time when Electron had major update, Electron forge was giving the same error and after Forge update it was fixed. So it's weird you don't admit this to be forge issue, since obviously that without deps update forge is unable to make Electron 9 apps, isn't it? |
The point is that |
Weird. I deleted all node_modules, made clean reinstall and after " npm update --depth 100 node-abi " i got hanging console + NodeJS working in the background with consumption of 100% of 1 CPU core. I kept it running for 30 minutes (!) and it never finished. So probably I'll have to wait until that dependency of Electron forge which has node-abi dependency will get updated, then Forge will get updated and only then my app will get updated :D |
I got the same error.
Good luck |
@asiercamara thanks for sharing. That advice helped me to get things running in dev mode, but "electron-forge make" still failing with the same error. |
@Razviar I can't replicate, |
If you're literally running |
@malept thank you so much for pointing me to the right direction. After switching to local forge scoped into the project, all is making fine now and "npm run make" works as a charm. Thanks again for help |
Using |
Preflight Checklist
Issue Details
Expected Behavior
Command "electron-forge start" launching the app
Actual Behavior
Command "electron-forge start" produces error:
An unhandled error has occurred inside Forge:
Could not detect abi for version 9.0.0 and runtime electron. Updating "node-abi" might help solve this issue if it is a new release of electron
Error: Could not detect abi for version 9.0.0 and runtime electron. Updating "node-abi" might help solve this issue if it is a new release of electron
at Object.getAbi (D:\mtgap\node_modules\node-abi\index.js:30:9)
at new Rebuilder (D:\mtgap\node_modules\electron-rebuild\src\rebuild.ts:124:24)
at rebuildWithOptions (D:\mtgap\node_modules\electron-rebuild\src\rebuild.ts:514:21)
at doRebuild (D:\mtgap\node_modules\electron-rebuild\src\rebuild.ts:567:12)
at asyncFn (D:\mtgap\node_modules@electron-forge\core\src\util\rebuild.ts:15:23)
at D:\mtgap\node_modules@electron-forge\async-ora\src\ora-handler.ts:35:5
at new Promise ()
at asyncOra (D:\mtgap\node_modules@electron-forge\async-ora\src\ora-handler.ts:34:10)
at _default (D:\mtgap\node_modules@electron-forge\core\src\util\rebuild.ts:14:9)
at _default (D:\mtgap\node_modules@electron-forge\core\src\api\start.ts:44:9)
at D:\mtgap\node_modules@electron-forge\cli\src\electron-forge-start.ts:59:19
npm ERR! code ELIFECYCLE
npm ERR! errno 1
To Reproduce
Additional Information
Looks like node-abi already have Electron 9 support added https://github.com/lgeiger/node-abi/commits/master
The text was updated successfully, but these errors were encountered: