-
Notifications
You must be signed in to change notification settings - Fork 57
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
external NPM modules are not loading after building [email protected] #216
Comments
I seem to be having the same issue. Have you been successful resolving it? |
I'm using cordova-electron with Ionic and what happened in my case. Cordova-Electron is using:
After I run "ionic cordova build electron", electron-builder is running npm install (with some flags) behind the scenes, however, it is using dependencies from package.json located in platform/electron/www directory, not the project one. Breaking change can be found in this commit: #175 in the PackageJsonParser.js file. A deleted part from lines 42 to 82 was responsible for coping dependencies from your project package.json to electron package.json. I think it was done because of security reasons, as it was done in the same commit where context isolation was enabled and node integration disabled. |
I am using [email protected] which I recently upgraded. I need to use some of the npm modules to work with the main process but after building the application, those modules are not taking but it workes when I do run the application.
what would be the possible issue
The text was updated successfully, but these errors were encountered: