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
Cannot find module '***' [Windows] #1852
Comments
Config in packages.json
|
try rebuild,electron-rebuild |
@hengkx Not required, electron-builder automatically rebuilds. |
Please set env |
@develar Thanks for help. |
@develar Its work fine with version |
@cmzz Could you please provide project to reproduce? |
@develar Above version 19.13.0 => 2100+ object in |
Do you use npm or yarn? Please remove |
As far I see (in my case solution "remove package-lock.json" helps), DO NOT USE F**** NPM. Sorry for capslock, but please do not ever use npm and never store |
Tip: node-notifier not required anymore — latest electron can show notifications from main process. |
@develar Aha thanks... Its work for me now. FUCK NPM |
Hi, |
I had the same issue with pnpm. After migrating to yarn the issue is solved. But what was the reason and why it doesn't work with pnpm? |
I spent all day trying to get this to work. Switching from PNPM to YARN worked for me. No idea why pnpm doesn't work but npm is referenced in the docs as if you have a choice but you dont. Yarn should really be documented as the ONLY package manager that works with electron-builder (again, NO idea why? someone enlighten me?) |
Im building an app on windows. When build success and run app , then got error "Cannot find module "ultron".
If add "ultron" to dependencies, got an other error : "Cannot find module "safe-buffer".
I know issuse 217 but cannot work for me .
module.paths is undifined
?Anyone have ideas..
You see, if build on mac, more modules did put in than build on windows in
win-unpacked\resources\app\node_modules
folderThe text was updated successfully, but these errors were encountered: