-
Notifications
You must be signed in to change notification settings - Fork 12k
ng build --prod
crashes after upgrade to v7
#12733
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
Comments
I think the difference between v6 and v7 is the bug reported in #12646 as in that issue production builds are taking longer, which usually indicated that more code is being processed and more memory is needed. The general issue for running out of memory is #5618. As projects grow bigger, they use more memory, and might need to increase the default memory limit. There's more information on this in #5618 (comment). In your case the only thing you did was to update from v6 to v7 and it should not need significantly more memory than before. I'll look at that problem in #12646. |
This has been changed in angular 7 now. I couldn't able to find the path of ng.. Please any help for finding its path in node modules.. `> node --max_old_space_size=5048 ng build --prod --aot --source-map=false module.js:540 Error: Error: Cannot find module '/Users/work/ui/node_modules/@angular/cli/bin/ng' npm ERR! A complete log of this run can be found in: npm ERR! A complete log of this run can be found in: |
ng build --configuration=production |
I am facing the same issue, I migrated my project from Angular 4 to Angular 8 . The ng serve workss fine but ng serve --prod shows the same problem. I have used the increase-memory-limit but I face the same problem. Any other suggestion of what to do ? |
Same problem here, with Angular 8: |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Bug Report or Feature Request (mark with an
x
)Command (mark with an
x
)Versions
Issue
Upgrading to the latest version (7) I am not able to build my project locally (Linux, ubuntu 64bits, 32gb RAM) nor... on CI 😿
The log given by the failure
Mention any other details that might be useful
Seems that the culprit might be Terser... Eventually that might be related to #12646 but I'm not sure
Also, the compilation is fine without the
--prod
The text was updated successfully, but these errors were encountered: