question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Not working with electron 2.0

See original GitHub issue
An unhandled error occurred inside electron-rebuild
Could not detect abi for version 2.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 2.0.0 and runtime electron.  Updating "node-abi" might help solve this issue if it is a new release of electron
    at Object.getAbi (\node_modules\node-abi\index.js:30:9)
    at new Rebuilder (\node_modules\electron-rebuild\lib\src\rebuild.js:64:28)
    at rebuildWithOptions (\node_modules\electron-rebuild\lib\src\rebuild.js:310:23)
    at Object.doRebuild [as rebuild] (\node_modules\electron-rebuild\lib\src\rebuild.js:317:16)
    at Object.<anonymous> (\node_modules\electron-rebuild\lib\src\cli.js:114:33)
    at Generator.next (<anonymous>)
    at \node_modules\electron-rebuild\lib\src\cli.js:8:71
    at new Promise (<anonymous>)
    at __awaiter (\node_modules\electron-rebuild\lib\src\cli.js:4:12)
    at \node_modules\electron-rebuild\lib\src\cli.js:69:8

Update to node-abi 2.4.0 should fix it, https://github.com/lgeiger/node-abi/releases/tag/v2.4.0

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
maleptcommented, Jul 12, 2018

You need node-abi 2.4.1 or later.

0reactions
christianscheuercommented, Jul 19, 2018

@malept thanks. You’re completely right, of course. My apologies. When creating a fresh repo with just that single dependency on electron-rebuild@1.8.1, it resolves just fine to the node-abi@2.4.3, so something must have been off in either some local state, or maybe a yarn bug combining dependencies. In any case not something relevant for this repo, I agree.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Not working with electron 2.0 · Issue #240 - GitHub
Updated electron to 2.0.4 and electron-rebuild to 1.8.1 resulting in the error: Could not detect abi for version 2.0.4 and runtime electron. ....
Read more >
Why doesn't electron 2.0 support TypeScript (ES6) import?
This 2 year old answer states the reason is dependent components (nodejs and chrome) don't support it, which is no longer true, so...
Read more >
Breaking Changes - Electron.js
Breaking changes will be documented here, and deprecation warnings added to JS code where possible, at least one major version before the change...
Read more >
@electron/remote - npm
@electron/remote. @electron/remote is an Electron module that bridges JavaScript objects from the main process to the renderer process.
Read more >
Build and Secure an Electron App - OpenID, OAuth, Node.js ...
The goal of this tutorial is to show you how to secure an Electron application with OpenID Connect and OAuth 2.0.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found