Module not found: Error: Can't resolve './build/Release/cld'
See original GitHub issueI added electron-spellchecker 1.1.2 to my package.json and the module compiled just fine.
Other native modules work well.
However I’m getting below error, on both osx and win 64 bit. I’m using electron-webpack.
I added added
import {SpellCheckHandler, ContextMenuListener, ContextMenuBuilder} from 'electron-spellchecker';
to my preload.js but get the following error when I launch electron-webpack dev
:
ERROR in ./node_modules/@paulcbetts/cld/index.js
Module not found: Error: Can't resolve './build/Release/cld' in '/Users/johan/projects/smrt-system/electron/node_modules/@paulcbetts/cld'
@ ./node_modules/@paulcbetts/cld/index.js 2:11-41
@ ./node_modules/electron-spellchecker/lib/cld2.js
@ ./node_modules/electron-spellchecker/lib/spell-check-handler.js
@ ./node_modules/electron-spellchecker/lib/index.js
@ ./src/renderer/preload.js
ERROR in ./node_modules/@paulcbetts/spellchecker/build/Release/spellchecker.node
Module parse failed: /Users/johan/projects/smrt-system/electron/node_modules/@paulcbetts/spellchecker/build/Release/spellchecker.node Unexpected character '�' (1:0)
You may need an appropriate loader to handle this file type.
(Source code omitted for this binary file)
@ ./node_modules/@paulcbetts/spellchecker/lib/spellchecker.js 3:15-60
@ ./node_modules/electron-spellchecker/lib/node-spellchecker.js
@ ./node_modules/electron-spellchecker/lib/index.js
@ ./src/renderer/preload.js
ERROR in ./node_modules/keyboard-layout/build/Release/keyboard-layout-manager.node
Module parse failed: /Users/johan/projects/smrt-system/electron/node_modules/keyboard-layout/build/Release/keyboard-layout-manager.node Unexpected character '�' (1:0)
You may need an appropriate loader to handle this file type.
(Source code omitted for this binary file)
@ ./node_modules/keyboard-layout/lib/keyboard-layout.js 4:30-86
@ ./node_modules/electron-spellchecker/lib/spell-check-handler.js
@ ./node_modules/electron-spellchecker/lib/index.js
@ ./src/renderer/preload.js
It’s probably something stupid but thought I’d post here as I couldn’t find anyone else with the same problem when searching historical issues.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:9
- Comments:8
Top Results From Across the Web
Issues - GitHub
The issue appears to occur when a module rebuild occurs. It seems that yarn will delete built modules more aggressively than npm when...
Read more >Webpack suddenly fails to compile due to "Module not found ...
It's an issue with the Webpack or Jest configuration. Absolute and relative paths can both be used, but be aware that they will...
Read more >module not found error can't resolve 'fs' in react js - You.com
The "Module not found: Can't resolve 'fs'" error in React is caused by a missing or incorrect dependency. To solve this problem, you...
Read more >Getting build errors building browser extension locally
Hello, I was trying to build the browser extension locally but i'm having build ... Module not found: Error: Can't resolve 'buffer' in ......
Read more >module-not-found - Next.js
Why This Error Occurred · The module you're trying to import is not installed in your dependencies · The module you're trying to...
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
Got same error on following config:
I ran into this yesterday, and got past it by adding
node-loader
to my webpack config.