Fork-ts-checker-webpack-plugin: Type checker hangs indefinitely in v1.5.1

Created on 17 Oct 2019  路  4Comments  路  Source: TypeStrong/fork-ts-checker-webpack-plugin

This was not happening prior to v1.5.1.

Steps to reproduce:

npx create-react-app bug
cd bug
yarn eject

(type y to confirm)

yarn add typescript
yarn tsc --init
yarn add [email protected]

Edit webpack.config.js:

-const ForkTsCheckerWebpackPlugin = require('react-dev-utils/ForkTsCheckerWebpackPlugin');
+const ForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin');

Run yarn start, and it hangs forever on:

Files successfully emitted, waiting for typecheck results...
bug released

Most helpful comment

All 4 comments

Thanks for reporting @pelotom. This is likely down to this change which moved fork-ts-checker-webpack-plugin to log everything to stderr

https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/issues/321

@akx @piotr-oles it looks like logging to stderr might be problematic. Please see the details above. Is there anything we can do to remedy this? If not perhaps we should consider reverting?

@pelotom would you like to raise a PR that reverts:

https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/commit/a89fdaf081b845e82eb8a1b578c597da6e24d2a2

If there are no suggestions of alternate approaches then we should look to merge that and get it released as 1.5.2

:tada: This issue has been resolved in version 1.6.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

Was this page helpful?
0 / 5 - 0 ratings