Skip to content

TypeScript dependency conflict with npm 7 / node 14 #2

@chludwig-haufe

Description

@chludwig-haufe

If I run npx create-react-app my-app --template must-have-libraries with npm 7.9.0 / node 14.16.0 (also tested with npm 7.6.0), I get the following dependency resolution error:

Could not resolve dependency:
peerOptional typescript@"^3.2.1" from [email protected]
node_modules/cra-template-must-have-libraries/node_modules/react-scripts
  react-scripts@"3.4.1" from [email protected]
  node_modules/cra-template-must-have-libraries
    cra-template-must-have-libraries@"*" from the root project

The full eresolve-report.txt is attached.

Using npm 6.14.12 / node 12.22.1, creation of the app succeeds.

First I suspected this to be a regression of facebook/create-react-app#9964, but npx create-react-app my-app --template typescript succeeds using npm 7 / node 14 as well. It therefore is specific to cra-template-must-have-libraries.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions