Skip to content

please add react 19 peer dependency support for react-simple-maps #388

@mratanusarkar

Description

@mratanusarkar

Installing react-simple-maps in a React 19 project currently fails with npm dependency resolution because the package's peer dependency only allows React up to 18.

Environment

react: 19.2.4
react-dom: 19.2.4
react-simple-maps: 3.0.0
npm: latest/default npm resolver

Reproduction

npm install react-simple-maps

Current behavior

npm fails with:

ERESOLVE unable to resolve dependency tree

Found: react@19.2.4

Could not resolve dependency:
peer react@"^16.8.0 || 17.x || 18.x" from react-simple-maps@3.0.0

Expected behavior

react-simple-maps should be installable in React 19 projects if the library is compatible with React 19.

Request

Could the peer dependency range be updated to include React 19?

For example:

{
  "peerDependencies": {
    "react": "^16.8.0 || 17.x || 18.x || 19.x",
    "react-dom": "^16.8.0 || 17.x || 18.x || 19.x"
  }
}

This would help React 19 / Next.js projects use react-simple-maps without needing --force, --legacy-peer-deps, or local overrides.

I found one override hack in #367, having official React 19 peer support would be neat!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions