Report errors in JS(X) files when CheckJS is enabled#564
Report errors in JS(X) files when CheckJS is enabled#564johnnyreilly merged 1 commit intoTypeStrong:masterfrom
Conversation
|
@johnnyreilly This is the PR, as discussed. I wasn't able to run the tests locally, because of Corporate proxy settings, and some tests are failing. Additionally, I didn't add any tests for this change. |
|
Thanks! I think the test failure is just a flaky test (they're full integration tests and so we get the odd false negative) Just kicked off a test run again. |
|
Great! Thanks for this - the fix will go out with the next release 👍 |
|
I'm noticing that this is reporting errors from JS files inside |
|
Are you running with 2.2.2? Should be resolved now |
|
I'm using version 2.4.1. Example of errors: |
|
Ah sorry, yes, ts-loader 2.2.2, tsc 2.4.1 |
|
Also are you excluding |
|
@johnnyreilly Yes, I believe so: {
module: {
rules: [
{
test: /\.ts$/,
exclude: /node_modules/,
use: [
{
loader: 'babel-loader',
},
{
loader: 'ts-loader',
options: {
entryFileIsJs: true,
}
},
],
},
]
}
} |
|
Hmmmm may be an issue then. If you lose the |
|
You can try the On the other hand, I am using 2.2.2 with a big mixed project, including lots of JS in |
|
Have you enabled checkJs on that project? |
|
@schmuli @johnnyreilly I spent awhile narrowing this issue down, smallest reproduction case here #577 |
|
Thanks for the repro - we appreciate it! I wonder, could you test with ts-loader v2.2.0 please? This was the version prior to @schmuli's change. Does the issue arise with that version? |
Closes #518