-
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
npm run start:prod is failed, unnecessary modules required (newly created project) v5 #594
Comments
same issue |
|
This issue comes from Nest |
Fixed in |
It works thanks |
I'm having this issue with 5.1.0 |
same issue with 5.1.0. |
Same here! |
I would recommend updating your packages to 5.4.0, there were no breaking changes. |
Updated to 5.4.0, but still experiencing this issue. |
The issue is definitely not present in 5.4.0. Please, ensure that all packages were updated. If you prefer, you can create a dedicated issue on StackOverflow. |
I am still seeing the same issue mentioned above. Its very easy to reproduce. I am running 5.4 version. Just create a project and run "npm run start:prod" |
Just for someone else experimenting this issue, my workaround was to modify the path of main.js :
|
If you happen to build your project in a Docker container and then run it in a different one for use in production, then don't use It must have been an idea for an April fools' day prank. 🤔 Just call |
The idea is to clean the built assets out before building new ones. This is to ensure you aren't running old code |
Same issue with v6.4.1 |
It works for me :) |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I'm submitting a...
Current behavior
After setting up a project with CLI as described in docs (without changing code), I have tried to run a command 'npm run start:prod' and get this error:
Of course the easiest solution is to install these packages, but what if I don't use them and don't want to install. Thanks.
Expected behavior
Compile and server in
dist/main.js
Minimal reproduction of the problem with instructions
Try to setup up project with CLI, and then run 'npm run start:prod'
Environment
The text was updated successfully, but these errors were encountered: