You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you import only a type (or use the imported object for type definition only) from a file it will be skipped during TS check by the plugin. So will be any unused ts files.
Expected behavior
All files included in tsconfig.json are being checked.
This is exactly same behavior ts-loader and tsc follow.
Steps to reproduce the issue
I provided simple repro below.
Just run yarn && yarn build to observe that no errors are triggered.
Change transpileOnly to false in webpack.config.js or just run npx tsc and see that both ts-loader and tsc do not ignore TS errors.
It's an old issue, I hope I will be able to solve it soon.
Thanks! that would be really great!
Maybe you should consider changing the title of #36. I saw this issue, but since the bug itself was not actually about triggering the rebuild, I thought it actually could be a different issue, and reported a new one.
Current behavior
If you import only a type (or use the imported object for type definition only) from a file it will be skipped during TS check by the plugin. So will be any unused ts files.
Expected behavior
All files included in
tsconfig.json
are being checked.This is exactly same behavior
ts-loader
andtsc
follow.Steps to reproduce the issue
I provided simple repro below.
Just run
yarn && yarn build
to observe that no errors are triggered.Change
transpileOnly
tofalse
inwebpack.config.js
or just runnpx tsc
and see that bothts-loader
andtsc
do not ignore TS errors.Issue reproduction repository
https://github.com/dmitrysteblyuk/fork-ts-checker-bug-repro
Environment
1.5.0
)The text was updated successfully, but these errors were encountered: