You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yes, the previous version in which this bug was not present was: 13.3.11
Description
After the upgrade from v13 to v14, builds fail with OOM errors. Adding --max_old_space_size=4096 works for one off builds but ng serve or ng test crash after a couple iterations.
🔬 Minimal Reproduction
I don't exactly know how to create a minimal reproduction, any pointers on how to debug this memory leak are appreciated :)
I've run the "Allocation sampling" memory profiling for our angular 13 and 14 application: angular-heap-13-vs-14.zip
Thanks for reporting this and sharing the memory profiles.
I had a look at them and it appears that TypeScript is consuming more memory in your case. There is already an open issue in the TypeScript repo microsoft/TypeScript#39059
As an interim workaround you could try to downgrade TypeScript to 4.6.x.
I tested some typescript and angular combinations and it seems that typescript 4.6.1-rc is indeed the last version that works.
Since Angular 14 requires at least 4.6.2, we'll have to wait until Typescript fixes the underlying issue.
🐞 Bug report
Command (mark with an
x
)Is this a regression?
Yes, the previous version in which this bug was not present was: 13.3.11
Description
After the upgrade from v13 to v14, builds fail with OOM errors. Adding
--max_old_space_size=4096
works for one off builds but ng serve or ng test crash after a couple iterations.🔬 Minimal Reproduction
I don't exactly know how to create a minimal reproduction, any pointers on how to debug this memory leak are appreciated :)
I've run the "Allocation sampling" memory profiling for our angular 13 and 14 application:
angular-heap-13-vs-14.zip
🔥 Exception or Error
🌍 Your Environment
The text was updated successfully, but these errors were encountered: