NodeJS API: `RpcExitError` on `compiler.close()`
AprilArcus opened this issue · 4 comments
AprilArcus commented
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
AprilArcus commented
This error is also emitted when terminating webpack dev server.
piotr-oles commented
Hi! Feel free to create PR to fix it :)
piotr-oles commented
piotr-oles commented
I'm closing for now, but if you create repository where I can reproduce the bug, I will re-open the issue :)