Skip to content

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

Closed

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.)

Activity

  1. n3tr commented on Nov 3, 2020

    @n3tr
    Contributor

    I believe this should be fixed once #9964 get merged 😄

  2. chrisebejermt commented on Nov 14, 2020

    @chrisebejermt

    Good Evening! Any idea when this issue will be fixed? Unfortunately, my CI/CD is broken due to an error when running NPM Install.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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