Skip to content

Peer dependencies not working with react 18+ #1005

@raphaelguimaraeszup

Description

@raphaelguimaraeszup

Summary:

I upgraded my react & react dom dependencies to 18.2.0 and when I try to run npm i my build process is breaking.

Steps to reproduce:

  1. Update React & React to v18+
  2. Try run npm i

Expected behavior:

Install and build the project.

Link to example of issue:

npm ERR! Could not resolve dependency:
npm ERR! peer react@"^0.14.0 || ^15.0.0 || ^16 || ^17" from react-modal@3.14.4

Additional notes:

npm ERR! Could not resolve dependency:
npm ERR! peer react@"^0.14.0 || ^15.0.0 || ^16 || ^17" from react-modal@3.14.4

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