-
Notifications
You must be signed in to change notification settings - Fork 14
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] #5
Comments
I'm not sure if I understood you correctly. If you want to package the electron application then you run the command e.g. I tried to add some external library to my application, bundled everything to this dist folder and created the packaged files. The command I was wondering if you use some direct paths to the node_modules folder in your app? Normally every module should be imported like |
Problem is with node modules like express, axios etc. This dependency is mentioned in the package.json file but is not copied to resources folder. |
The problem in node-only modules, that are not (or can not be) referenced from frontend source files. I believe that angular-cli just ignores them. |
I'm building an app on windows. The app builds successfully and while running app gives the error "Cannot find module "express".
Copying node_modules folder inside resource/app solves the problem.
Dependency saved in package.json is not copied at the time of packaging.
The text was updated successfully, but these errors were encountered: