electron / electron/rebuild

Could not detect abi for version 36.3.0 and runtime electron.

Open
#1,193 1 comment 2 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
1.1k
Forks
181
Avg merge
6h 44m
Merged PRs (30d)
3

Description

### Environment
- Windows 11 Home
- Npm Packages:
- "@electron/rebuild": 3.7.0
-"electron": "36.3.0"

### Error
`Error: Could not detect abi for version 36.3.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:39:9)
at get ABI (node_modules\@electron\rebuild\lib\rebuild.js:89:39)
at get metaData (node_modules\@electron\rebuild\lib\module-rebuilder.js:52:58)
at ModuleRebuilder.alreadyBuiltByRebuild (\node_modules\@electron\rebuild\lib\module-rebuilder.js:57:34)
at async Rebuilder.rebuildModuleAt (node_modules\@electron\rebuild\lib\rebuild.js:130:28)
at async Rebuilder.rebuild (node_modules\@electron\rebuild\lib\rebuild.js:115:17)`

### Current Behavior
- Electron builder failed to build the app.

### Expected Behavior

- Should be able to package the app.

### Proposed Solutions
Update `node-abi` in this package. I manually install it to the project and the building worked fine.

Contributor guide

Open the contributing guide

Research direction

Start at node_modules/node-abi/index.js and the ABI lookup path shown in @electron/rebuild/lib/rebuild.js. Check whether the package version used by @electron/rebuild recognizes Electron 36.3.0, then run the package build or rebuild flow on Windows with Electron 36.3.0. Done means the app packages without the ABI detection error.

Written by the indexing model from the issue text.

Assessment

Tech stack
electron, node.js, typescript
Domain
build-system, desktop, tooling
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.