fix(webpack): increase typescript memory limit #18
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
https://trello.com/c/iu73Ym6U
Issue
I'm still seeing crashing when running the web app locally. Looking closely at the error message, they suggest updating the memory limit on ForkTsCheckerWebpackPlugin
Solution
Looking at the docs for ForkTsCheckerWebpackPlugin, we see that the default limit is 2GB. Let's bump it to 4GB
Testing
I was able to consistently reproduce the crash in cea-desktop with these steps:
main
and runyarn start
git checkout 1.504.0
We can verify that this fix works by:
Note that you should still expect to see unrelated compilation errors due to the significant difference between the two versions of the code base. However, the crash should not occur.