Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upout of memory on ng serve with i18n and targeting es5 #18398
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 |


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 serveis excessive@angular/localizeThe issue doesn't happen if I changed the target to ES2015 or disabled i18n.
ng buildandng serve --no-source-mapis also not affected.ng add @angular/localizeangular.json.tsconfig.base.jsonto"es5"and enable IE11 in browserlist.encoding-japaneseandtext-encoding.ng serveand it consumes a lot of memory.reproduction: https://github.com/nomeaning777/ng-serve-memory-issue-reproduction
ng servefailed with OOM Error.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.