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.

Could not detect abi for version 12.0.0 and runtime electron.

See original GitHub issue

Hi When I try to rebuild a module in newly released electron 12.0.0, it fails with an error:

An unhandled error occurred inside electron-rebuild
Could not detect abi for version 12.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 12.0.0 and runtime electron.  Updating "node-abi" might help solve this issue if it is a new release of electron
    at Object.getAbi (C:\dev\electron_test\node_modules\node-abi\index.js:30:9)
    at new Rebuilder (C:\dev\electron_test\node_modules\electron-rebuild\lib\src\rebuild.js:102:48)
    at rebuildWithOptions (C:\dev\electron_test\node_modules\electron-rebuild\lib\src\rebuild.js:253:23)
    at Object.doRebuild [as rebuild] (C:\dev\electron_test\node_modules\electron-rebuild\lib\src\rebuild.js:276:16)
    at C:\dev\electron_test\node_modules\electron-rebuild\lib\src\cli.js:119:33

how to reproduce:

npm init
npm i electron@12.0.0
npm i electron-rebuild
npm install windows-process-tree@0.2.4 --ignore-scripts
.\node_modules\.bin\electron-rebuild.cmd -f -w windows-process-tree

Throws an error

It is interesting, because older versions (e.g. 11.2.3), and electron v12 betas (the latest: 12.0.0-beta.31, released 20 hours ago), works:

npm init
npm i electron@12.0.0-beta.31
npm i electron-rebuild
npm install windows-process-tree@0.2.4 --ignore-scripts
.\node_modules\.bin\electron-rebuild.cmd -f -w windows-process-tree

os: windows 10 node: 14.16.0

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
maximborisovcommented, May 12, 2021

@lstolcman, I found better solution from @jacobq, contributor of node-abi: https://github.com/lgeiger/node-abi/issues/102#issuecomment-831355695

1reaction
lstolcmancommented, Apr 8, 2021

Any news on this issue?

I guess we have to wait till new release

I solved the issue by forcing install specific version of node-abi before rebuilding:

npm install node-abi@2.20.0
.\node_modules\.bin\electron-rebuild.cmd ....
Read more comments on GitHub >

github_iconTop Results From Across the Web

Could not detect abi for version 12.0.0 and runtime electron.
Hi When I try to rebuild a module in newly released electron 12.0.0, it fails with an error: An unhandled error occurred inside...
Read more >
node-abi - npm
Get the Node ABI for a given target and runtime, and vice versa.. Latest version: 3.30.0, last published: 25 days ago. Start using...
Read more >
Could not detect abi for version 14.0.0 and runtime electron
There is a problem with automatically releasing new versions of node-abi , which is why this error exists with electron-rebuild (and Electron ...
Read more >
Electron-builder NPM
npm version downloads per month donate. A complete solution to package and build a ready for distribution Electron app for macOS, Windows and...
Read more >
"node-abi" problem with MM v2.18.0 - MagicMirror Forum
I already did a fresh installation of MagicMirror and node.js but the ... Could not detect abi for version 16.0.5 and runtime electron....
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