fork-ts-checker-webpack-plugin triggers JavaScript heap out of memory

ryan's Avatar


11 Apr, 2018 04:01 PM

We just switched to using the fork-ts-checker-webpack-plugin to improve our build times. This works great locally but requires 2048MB of memory, which is causing our AppVeyor builds to fail with EXEC : FATAL error : CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory. Is there any way to increase the memory on the build machine, or will we need a different build path for AppVeyor builds?

  1. Support Staff 1 Posted by Feodor Fitsner on 11 Apr, 2018 04:54 PM

    Feodor Fitsner's Avatar

    Look at the similar thread here:

    Wondering if the solution there can help you; otherwise we can put your account on GCE where VMs have more RAM:

  2. 2 Posted by ryan on 11 Apr, 2018 06:14 PM

    ryan's Avatar

    Trying it now. I also found I could reduce the memory used by the plugin, which appeared to work, though it slows our local builds down.

  3. 3 Posted by ryan on 16 Apr, 2018 03:47 PM

    ryan's Avatar

    The links above did not work, but setting a memory limit on the plugin to 1024 did work.

  4. ryan closed this discussion on 16 Apr, 2018 03:47 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac