-
Notifications
You must be signed in to change notification settings - Fork 12k
out of memory on ng serve with i18n and targeting es5 #18398
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 was able to reproduce this issue with node 10.16.0. Although, after updating the node version to 12.18.3(LTS), it works fine. |
I'm also able to reproduce on node 14.9 and angular 10.0.16 |
I am experiencing the same issue here target: es2015 however, in my case, the target does not matter, but if I turn off the AOT, the issue goes away |
Is there anything known about this thread? I have the same problem in angular 10.2.0 |
I have the same problem (ng serve, localize:"X", es5 ) in angular 11.0.2... |
The same with Angular 10.2.1 and Node v10.23.0 following the Documentation with this config, doing
|
+1 (keeping the issue alive) |
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
Command (mark with an
x
)Is this a regression?
Yes, the previous version in which this bug was not present was: 9.1.12
Description
If the Angular project satisfies the following conditions, the memory usage of
ng serve
is excessive@angular/localize
The issue doesn't happen if I changed the target to ES2015 or disabled i18n.
ng build
andng serve --no-source-map
is also not affected.🔬 Minimal Reproduction
ng add @angular/localize
angular.json
.tsconfig.base.json
to"es5"
and enable IE11 in browserlist.encoding-japanese
andtext-encoding
.ng serve
and it consumes a lot of memory.reproduction: https://github.com/nomeaning777/ng-serve-memory-issue-reproduction
🔥 Exception or Error
ng serve
failed with OOM Error.🌍 Your Environment
I reproduced it in Github Actions: https://github.com/nomeaning777/ng-serve-memory-issue-reproduction/runs/922735595 . This occurs regardless of the Node version or OS version.
The text was updated successfully, but these errors were encountered: