`create-react-app --template typescript` creates unresolvable dependency conflict
Created by: 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.)