Skip to content
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

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

Closed
isaacs opened this issue Nov 2, 2020 · 2 comments · Fixed by #9964
Closed

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

isaacs opened this issue Nov 2, 2020 · 2 comments · Fixed by #9964

Comments

@isaacs
Copy link

isaacs commented Nov 2, 2020

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

@n3tr
Copy link
Contributor

n3tr commented Nov 3, 2020

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

@chrisebejermt
Copy link

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
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants