TypeStrong/fork-ts-checker-webpack-plugin

NodeJS API: `RpcExitError` on `compiler.close()`

AprilArcus opened this issue · 4 comments

Current behavior

ForkTSCheckerPlugin prints this error as soon as I call .close() on the compiler instance via the NodeJS API, which I must do (and await) in order to avoid corrupting the filesystem cache due to webpack/webpack-cli#2918.

RpcExitError: Process 460624 exited [SIGTERM]
Issues checking service aborted - probably out of memory. Check the `memoryLimit` option in the ForkTsCheckerWebpackPlugin configuration.
If increasing the memory doesn't solve the issue, it's most probably a bug in the TypeScript.

Expected behavior

ForkTsCheckerWebpackPlugin should exit cleanly.

Environment

  • fork-ts-checker-webpack-plugin: 7.2.13
  • typescript: 4.6.3
  • webpack: 5.74.0
  • os: macOS 12.5.0

This error is also emitted when terminating webpack dev server.

Hi! Feel free to create PR to fix it :)

I can't reproduce it with the latest version of the plugin - is it still an issue?

image

I'm closing for now, but if you create repository where I can reproduce the bug, I will re-open the issue :)