Skip to content
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

Could not detect abi for version 11.0.1 and runtime electron #218

Closed
nelsonni opened this issue Nov 17, 2020 · 1 comment
Closed

Could not detect abi for version 11.0.1 and runtime electron #218

nelsonni opened this issue Nov 17, 2020 · 1 comment
Assignees
Labels
bug Bug reports or bug fixes
Milestone

Comments

@nelsonni
Copy link
Member

nelsonni commented Nov 17, 2020

Describe the bug
Upgrading electron package from v10.1.3 to v11.0.1 (see #217) presents the same type of version alignment error as seen in #217. Documented in electron/forge#2042, Electron v11.0.1 is currently blocked on an upstream node-abi merging/releasing a fix.

% yarn start
yarn run v1.22.5
$ electron-forge start
✔ Checking your system
✔ Locating Application
✖ Preparing native dependencies

An unhandled error has occurred inside Forge:
Could not detect abi for version 11.0.1 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 11.0.1 and runtime electron.  Updating "node-abi" might help solve this issue if it is a new release of electron
    at Object.getAbi (/Users/nelsonni/Workspace/synectic/node_modules/node-abi/index.js:30:9)
    at new Rebuilder (/Users/nelsonni/Workspace/synectic/node_modules/electron-rebuild/src/rebuild.ts:112:44)
    at rebuildWithOptions (/Users/nelsonni/Workspace/synectic/node_modules/electron-rebuild/src/rebuild.ts:363:21)
    at doRebuild (/Users/nelsonni/Workspace/synectic/node_modules/electron-rebuild/src/rebuild.ts:416:12)
    at asyncFn (/Users/nelsonni/Workspace/synectic/node_modules/@electron-forge/core/src/util/rebuild.ts:15:23)
    at /Users/nelsonni/Workspace/synectic/node_modules/@electron-forge/async-ora/src/ora-handler.ts:35:5
    at new Promise (<anonymous>)
    at asyncOra (/Users/nelsonni/Workspace/synectic/node_modules/@electron-forge/async-ora/src/ora-handler.ts:34:10)
    at _default (/Users/nelsonni/Workspace/synectic/node_modules/@electron-forge/core/src/util/rebuild.ts:14:9)
    at _default (/Users/nelsonni/Workspace/synectic/node_modules/@electron-forge/core/src/api/start.ts:44:9)
    at /Users/nelsonni/Workspace/synectic/node_modules/@electron-forge/cli/src/electron-forge-start.ts:58:19
error Command failed with exit code 1.

To Reproduce
Steps to reproduce the behavior:

  1. Open terminal session from the root directory in the Synectic source code
  2. Run yarn start (which is shorthand for electron-forge start)
  3. See error

Expected behavior
Synectic should successfully compile and execute using the updated electron v11.0.1 environment.

Screenshots
N/A

Versions (please complete the following information):

  • OS: MacOS, Windows, Linux
  • Synectic Version: 1.0.0-beta (branch: development)

Additional context
Per electron/forge#667, this issue can be resolved by removing the node-abi entry from the yarn.lockfile and running yarn command to rebuild with the latest node-abi version (which is compatible with electron v11.0.1.

@nelsonni nelsonni added the bug Bug reports or bug fixes label Nov 17, 2020
@nelsonni nelsonni added this to the v1.0.0 milestone Nov 17, 2020
@nelsonni nelsonni self-assigned this Nov 17, 2020
@nelsonni
Copy link
Member Author

We must wait until electron/node-abi#95 gets merged, and the subsequent downsteam changes are integrated into electron-forge via electron/forge#2042.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug reports or bug fixes
Projects
None yet
Development

No branches or pull requests

1 participant