-
-
Notifications
You must be signed in to change notification settings - Fork 247
Type Checking Not Works with TypeScript 5.6+ and build: true
Option
#855
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
Comments
build: true
Optionbuild: true
Option
I believe this is ~caused by microsoft/TypeScript#60500 |
When building projects in `tsc` build mode (with `typescript.build` set to `true`), some paths passed to `getModifiedTime` will be `undefined`. Previously, this would cause an error and prevent type-checking (see TypeStrong#855). With these changes, the modified time will just be returned as `undefined` in such cases, which allows type checking to complete successfully.
I made a PR (#865) to fix this by just returning Until that PR is merged, I'm just fixing this with patch-package, which you can do like this:
|
When I use [email protected]+ and set the fork-ts-checker-webpack-plugin's option
typescript.build
totrue
, the following problem occurs.Current behavior
The webpack build completes with no errors even if there are type errors in source code such as:
Not sure if this is relevant, but I see the following messages during the build:
Expected behavior
The webpack build raises errors such as:
Steps to reproduce the issue
npm ci
npx webpack
In addition, it works fine if you exec
npm i [email protected]
before the build.Issue reproduction repository
https://github.com/kku39/issue-repro-of-fork-ts-checker-webpack-plugin
Environment
The text was updated successfully, but these errors were encountered: