-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
App dependency not being packaged in app.asar (node_modules folder empty) #801
Comments
Could you please provide sample project? Are you sure that |
Let me describe better my current setup:
Should I have to run |
10.2.0 should be ok. Also, please consider to migrate to simple one-package.json structure. electron-builder 9 doesn't force you to use 2-package.json structure even if you have native deps. |
I'm trying to package an app which has runtime dependency on
electron-localshortcut
. I've declared"electron-localshortcut": "^0.6.1"
in both"devDependencies"
(at developmentpackage.json
file) and"dependencies"
(at applicationpackage.json
file).However, when I try to launch the app, it gives me an error message telling that
electron-localshortcut
module was not found. Investigating the contents ofdist/*-unpacked/resources/app.asar
, it seems that foldernode_modules
remains empty after building.The text was updated successfully, but these errors were encountered: