-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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
Misleading statement regarding using Create-React-App with Typescript #1482
Comments
If you run To summarize: if you run |
This is not my experience. I just tried both |
I just updated create-react-app, and it solved the problem. The reason I did not update create-react-app in the first place is that I read here (Create-React-App documenation) that :
I'll close this here, and open an issue on Create-React-App. |
In static-type-checking -> Using TypeScript with Create React App it says
Well, it doesn't seem so.
I followed the instructions for creating a new project.
create-react-app my-app --typescript
I converted App.jsx to App.tsx. There was only 1 error - no types for React. I installed types for React
npm i @types/react
and then run npm start.
I got the following error:
While it's perfectly fine to expect a user to install "typescript" and the various type modules, i wouldn't say that it qualifies as "support out of the box" for typescript.
The text was updated successfully, but these errors were encountered: