-
-
Notifications
You must be signed in to change notification settings - Fork 26.8k
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
Unable to use typescript 4 with react-scripts 4 and npm 7.0.5 #9892
Comments
Have you tried delete your I just upgraded one of my projects and typescript 4 support is fine. |
@malcolm-kee very much so. Are you also using npm v7.0.5? |
@MichaelHindley opps, I am using npm 6. Sorry I miss out that 😅 |
I've got the same issue - |
I am having this issue as well, but with TS 3.9.7, and npm 6.14.7. After running
|
Add |
Can I suggest that this little tidbit be added to the Release Notes? (I know that's not on you @ggascoigne) |
sorry I would have written a longer reply at the time but I was on the phone chatting to someone with this exactly problem at the time :) I actually found this snippet in another variation of this bug elsewhere in this repo. I think that the cause is something to do with the assumptions about what the expected config is have changed and there's no automated migration. But, yes, adding this to the release notes and or upgrading the error handling with a more useful error message would be neat. |
One of the release notes for 4.0.0 is support for typescript v4,
so as a user I'd expect to be able to use typescript 4 with react-scripts 4.0.0.
Case:
package.json with react-scripts 4.0.0 and typescript 4.0.3 with npm on latest (7.0.5)
Result:
Expected:
No error
Fallback: Use ts 3.9.7
The text was updated successfully, but these errors were encountered: