-
Notifications
You must be signed in to change notification settings - Fork 492
fork-ts-checker-webpack-plugin crashes with "Invalid source file:" #245
Comments
The I've tracked this down a bit, and figured out that the files from the
Taking a look at your I was able to fix this issue with the following steps:
The reason this issue did not raise before is that this plugin utilizes the |
@DorianGrey wow thank you, you're awesome. Do you think there's any way to alleviate this kind of thing in the future for other people or does it just come down to a silly configuration file on my part? |
I fear it's the latter one. The typescript docs explicitly mention that the |
I have tried all of the approaches above and it still keeps failing for every file save! |
I'm having the same issue, but the cause is different. My Added console.log on
Workaround: I disabled |
+1 |
Having "include": [
"src/**/*"
] and new ForkTsCheckerWebpackPlugin({
// other options
watch: false // <- fix
}), did the trick for me! |
I had this same issue. I made a pull request of what fixed the issue for me. TypeStrong/fork-ts-checker-webpack-plugin#127 |
@joshpcausey could you please also create a PR to update the fork-ts-checker-webpack-plugin version for react-script-ts? |
Hi guys, any update on this? |
@copiali, I have tested it with the pull request version and the problem is gone. Could you please check the failed test, please? |
+1 |
Originally wrongly reported here: #238 (comment)
Is this a bug report?
Yes.Edit: I originally thought this was a cra-ts bug, but it appeared that I had a bad tsconfig.json file.Can you also reproduce the problem with npm 4.x?
Using yarn not npm.
Environment
npm ls react-scripts-ts
:react-scripts-ts@2.13.0
node -v
:v9.4.0
npm -v
:5.6.0
(don't use npm though)yarn --version
:1.3.2
Steps to Reproduce
yarn install
and thenyarn start
.src
file likeApp.tsx
. Press save in your editor and watch it crash.After the first load, this happens every time I save a file and the app tries to reload.
I've tried
react-scripts-ts@2.8.0
and that version does not have this issue.Any ideas?
The text was updated successfully, but these errors were encountered: