Skip to content

Misleading statement regarding using Create-React-App with Typescript #1482

@carpben

Description

@carpben

In static-type-checking -> Using TypeScript with Create React App it says

Create React App supports TypeScript out of the box.

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:
image
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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions