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.

The specified module could not be found, with electron v4.0.0.

See original GitHub issue

With electron 3.0.12 everything seems to work fine. Changed version to 4.0.0, removed node_modules, did npm i, all ok.

If I run electron-rebuild, the command runs, but it does not rebuild the sharp module, does not seem it’s picking it up. If I run require('sharp') I get: The specified module could not be found

If I cd to node_modules/sharp and try to recompile it manually: node-gyp rebuild --target=4.0.0 --arch=x64 --dist-url=https://atom.io/download/electron and try require('sharp') I still get The specified module could not be found.

Note: I have checked and sharp.node is present at the specified path.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:5
  • Comments:32 (13 by maintainers)

github_iconTop GitHub Comments

8reactions
lovellcommented, Apr 25, 2019

v0.22.1 now available with prebuilt binaries for Electron 4 and 5.

Please remember to run electron-rebuild (which may itself also need updating to pick up the new ABI versions),

6reactions
lovellcommented, Apr 7, 2019

I’ve opened a PR to help ensure prebuilt binaries for the latest Electron 4 / ABI 69 will soon be available - see https://github.com/prebuild/prebuild-ci/pull/16

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error: The specified module could not be found - Stack Overflow
I got some hints from electron-userland/electron-packager#217 and electron/electron#892 , which pointed out that this error, "The specified ...
Read more >
Electron 4.0.0
You can find a summary of the major changes in Electron 4 below; for the full list of changes, check out the Electron...
Read more >
electron-releases - npm
Tag Published Prerelease Node Chrome Downloads v8.0.0‑nightly.20190820 2019‑08‑20 yes 12.8.1 78 7 v8.0.0‑nightly.20190819 2019‑08‑20 yes 12.8.0 78 16 v8.0.0‑nightly.20190818 2019‑08‑18 yes 12.8.0 78 6
Read more >
Command-line API | Node.js v19.3.0 Documentation
If a file is found, its path will be passed to the ECMAScript module loader ... If --cpu-prof-dir is not specified, the generated...
Read more >
Electron failed to resolve module specifier
I get electron -quick-start and electron -polymer from fluidnext to use for my ... Why you need it is that you can't require...
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