The specified module could not be found, with electron v4.0.0.
See original GitHub issueWith 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:
- Created 5 years ago
- Reactions:5
- Comments:32 (13 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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),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