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.

Problem with Electron 11

See original GitHub issue

I’ve just tested the new release (v1.6.4) (https://github.com/tessel/node-usb/pull/407) and it breaks my app on Electron 11 (tested on macos and ubuntu 20).

However it works on Electron 10 and Electron 12 beta 1 🤔

Error message:

Uncaught Error: The module '.../node_modules/usb/build/Release/usb_bindings.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 87. This version of Node.js requires
NODE_MODULE_VERSION 85. Please try re-compiling or re-installing
the module (for instance, using `npm rebuild` or `npm install

For reference: https://github.com/nodejs/node/blob/master/doc/abi_version_registry.json

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
kevinmehallcommented, Jan 30, 2021

83 is Node 14, so that’s getting chosen based on your Node, rather than Electron version. That’s a different error than the 85/87 mismatch from your original post. I don’t really know how electron-rebuild is supposed to work, or what’s responsible for downloading the right prebuild when using electron.

I confirmed that the usb-v1.6.4-electron-v85-linux-x64.tar.gz on the release actually contains a .node file build for v87, so even if it were downloading the “right” file, you’d still get the wrong version. I opened https://github.com/prebuild/prebuild/issues/273 for that.

I’ve had enough of this prebuild ABI madness and am not going to debug this further. Hopefully N-API (#399) will avoid all these problems.

0reactions
thegeckocommented, Feb 14, 2021

Fixed in v1.6.5

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to run with electron 11 · Issue #487 - GitHub
V14.7.0 Steps: Bump electron version to latest stable version: package.json npm install && npm start Expected result: App can start and show...
Read more >
Electron 11.0.0
Beginning in Electron 11, Electron will be shipping separate ... Read and follow this issue for full plans and details for deprecation.
Read more >
The problem with Electron | HackerNoon
Essentially, the issue comes down to the web stack being a poor fit for general-purpose GUI tasks.
Read more >
Node-fetch not working with Electron 11, error resp.body.pipe ...
My download function doesn't seem to work anymore, and I can't understand the problem. Since my app is based on this boilerplate, I...
Read more >
Microsoft is Finally Ditching Electron | by Faisal Khan
It would be called Teams 2.0 and might ship with Windows 11 in late 2022. The Electron Problem. There are tons of well-known...
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