-
-
Notifications
You must be signed in to change notification settings - Fork 431
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
FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory #421
Comments
Thanks for sharing that. I'm wondering if this is related to #420 - seems likely. |
I'm pondering whether adding loader options to when constructing the resolver might be a good idea. |
BTW - which version of WebPack are you using? And can you confirm if the issue occurs when using ts-loader 1.3.1? We used an older version of enhanced-resolve then |
@johnnyreilly I am on [email protected] rite now. With 1.3.1 its failing with |
Thanks @prasanthkarukkuvel - I'm not totally certain but I think having |
I am experiencing something similar when trying to upgrade ts-loader from 2.3.7 to 3.0.5. I'm using Webpack 3.8.1. If it's useful, you can grab the code and execute |
Perhaps there is a difference in how ts-loader 3.x decides which files to compile? It turns out that I have ~50 MB of files in my build directory and my build directory was not in the |
Don't know why anything we'd have done between 2.x and 3.x would make a difference. Curious.. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
1 similar comment
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Closing as stale. Please reopen if you'd like to work on this further. |
ts-loader runs out of memory while building. Its seems related to use of enhanced-resolve
`==== JS stack trace =========================================
Security context: 000002F1F9DC9E51
1: forEachBail [D:\Production\fsm-ui-analytics\node_modules\ts-loader\node_modules\enhanced-resolve\lib\forEachBail.js:~5] [pc=000003F65D84C023] (this=000002F1F9DE0D29 ,array=0000038750240011 <JS Array[7]>,iterator=0000038750240079 <JS Function (SharedFunctionInfo 0000006216543CD1)>,callback=00000387502400C1 <JS Function (SharedFunctionInfo 0000006216543D91)>)
2: /* ...`
But adding LoaderOptionsPlugin with options to webpack resolves this issue
new LoaderOptionsPlugin({ options: {} })
Might be because
function makeResolver(options: { resolve: interfaces.Resolve }): interfaces.ResolveSync { return node.create.sync(options.resolve); }
The text was updated successfully, but these errors were encountered: