Skip to content

create-react-app --template typescript creates unresolvable dependency conflict #9995

Closed
@isaacs

Description

@isaacs

Running npx create-react-app --template=typescript myapp will create a package.json file which contains this:

    "react-scripts": "4.0.0",
    "typescript": "^4.0.3",

However, react-scripts@4.0.0 has a peer dependency on typescript@^3.2.1, which cannot be resolved alongside the typescript@^4.0.3 dependency added to the root package.json.

Suggest installing typescript@^3.2.1 instead.

(Note: this does not fail in yarn or npm 6, because these do not install peerDependencies, but it is likely that unexpected errors will occur as a result.)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions