-
Notifications
You must be signed in to change notification settings - Fork 12k
1.5.0 - cannot build with AOT or Build Optimizer: JavaScript heap out of memory #8334
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'm having the same issue since 1.5 |
I'm having the same issue in 1.4.2 |
Same problema since 1.3 :( Using node --max_old_space_size=4096 ./node_modules/@angular/cli/bin/ng build --prod too. |
@williangd |
I agree that manually increasing the node memory allocation during a build will help it to succeed - but isn't this more of a red flag that something wrong is causing the cli to use a large amount of memory? Suddenly having to increase memory after a minor version bump is a bit concerning to me. If this is to be the accepted norm I would be happy to put together a PR to document it so others don't think something is wrong, but would like confirmation from someone like @filipesilva first. |
This solution does not work for containers like travis.. |
Working on a large application i simply can't build anymore with AOT even increasing the memory to 5g.. |
I really appreciate your great work on Angular so far, but I have to say that it worries me that every minor update lately basically causes another error that crashes our production build and thus throttles our entire development process. Having said that, we're still dealing with the described problem as well... |
Same issue with a medium-large application when trying to upgrade to angular cli 1.5.0 and angular 5.0.0. |
Also having same issue since upgrading to angular cli 1.5.0 and angular 5.0.0. |
Heya, I'm closing this issue in favor of #5618, but want to highlight that I'm investigating it right now. I'd appreciate it if you could read my comment in #5618 (comment) and answer the questions there. It will help get to the problem of the issue in 15.. |
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
)Versions.
Repro steps.
The log given by the failure.
Desired functionality.
After updating a project to CLI v1.5.0 builds with aot and build-optimizer should be successful
Mention any other details that might be useful.
I'm working with an existing medium to larger sized app and can build with AOT using cli v1.4.9. Using
--build-optimizer
failed with the same result as above so I tried updating my CLI to 1.5 to see if there were any improvements and can no longer build with AOT. The build will process for 15-20 minutes then crashes with the output above. At first I thought it could be related to devkit #240, but after running the build again with--build-optimizer=false
the out of memory crash reoccurred. I am only able to successfully build by disabling aot and build-optimizer.The text was updated successfully, but these errors were encountered: