Project references and v8 (webpack v4): JS files in node_modules
should not be type checked
#1338
Labels
node_modules
should not be type checked
#1338
Expected Behaviour
When I run
tsc --build
, TS does not error.Similarly, when I run webpack, TS does not error.
Actual Behaviour
When I run
tsc --build
, TS does not error.When I run webpack, TS errors due to a type error inside of a JS source file which lives in
node_modules
.Steps to Reproduce the Problem
I have a reduced test case but there are still too many steps to list here, so instead I'll just share the link:
https://github.com/OliverJAsh/ts-loader-project-references-js-node-modules
Running
tsc --build
Running
webpack
Location of a Minimal Repository that Demonstrates the Issue.
See above.
I tested this with v9 and webpack v5 and I could not reproduce the error—see branch
webpack-5+ts-loader-9
in the reduced test case.Unfortunately upgrading to webpack v5 isn't an option for us right now. In any case it would be good to understand what changed in v9 (maybe we can backport the fix), and hopefully this bug report will still be useful to anyone else who is using v8.
The text was updated successfully, but these errors were encountered: