-
Notifications
You must be signed in to change notification settings - Fork 12k
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
92% after chunk asset optimization SourceMapDevToolPlugin vendor.js generate SourceMapKilled #13005
Comments
Hi, can you share the versions you are using by running:
|
Angular CLI: 7.0.6 Package Version@angular-devkit/architect 0.10.6 |
@luther-nwpu does this happen with a brand new project on CentOS? Or just on your project? |
I got the same problem, there is actually a webpack-contrib issue reported as well that might suggest this is a upstream issue: webpack-contrib/uglifyjs-webpack-plugin#272 That has been said, I turned off both optimization and sourcemap flag in angular.json, but still got this error. This is on a brand new project created through cli. This project was created on VM in cloud with only 1 vCPU and 512MB RAM. So, my guess is this is an OOM somewhere. Angular CLI: 7.1.4 Package Version@angular-devkit/architect 0.11.4 |
Angular CLI: 6.0.8 |
Just for a reference #5775. |
Well, it appears to be an OOM issue. My test environment is on GCP. Once I bumped instance from micro (512MB RAM) to small (1.7G RAM). This problem disappeared. Can't believe the fact that nowadays Javascript library requires that much resource to "compile"... |
same as @hellocomrade. upgraded from 1GB to 2GB RAM on digital ocean and it started working. |
you'll soon need much more memory for sure. Unfortunately Angular builds need more and more gigabytes of memory as the project grows, especially when using AOT and differential loading. Also, Node.js has a default memory limit somewhere between 1 and 2 GB. So it's quite common to use this in Angular projects: |
Try this, worked for me: |
@byronglendon I've encountered this issue 10 minutes ago and your suggestion worked for me as well. Thanks! |
Well, it saves my days! @byronglendon |
Thanks you very much @byronglendon |
@byronglendon wonderfull! |
Closing as per explanation in one of the above comments #13005 (comment) If the problem persists, please open a new issue, provide a simple repository reproducing the problem, and describe the difference between the expected and current behavior. |
Regarding that comment, you can provide a NODE_OPTIONS environment variable and you won't need to change your commands. I've added this to my
|
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
node 10.13
npm 6.4.1
Repro steps
ng new my-app
ng serve
The log given by the failure
Desired functionality
92% after chunk asset optimization SourceMapDevToolPlugin vendor.js generate SourceMapKilled
Mention any other details that might be useful
In centos, it happened. But in windows, it is normal.
The text was updated successfully, but these errors were encountered: