react-simple-maps icon indicating copy to clipboard operation
react-simple-maps copied to clipboard

Not compatible with React@19

Open ShreeShubh opened this issue 9 months ago • 10 comments

Attempting to install react-simple-maps with React 19 fails due to peer dependency conflicts.

ShreeShubh avatar Apr 14 '25 06:04 ShreeShubh

how you resolve this?

Cibulya avatar May 20 '25 10:05 Cibulya

Does installing with --legacy-peer-deps not work?

gyanbhartip avatar May 26 '25 03:05 gyanbhartip

Someone posted a dependency workaround on this earlier issue: https://github.com/zcreativelabs/react-simple-maps/issues/367

Using that enabled me to get this installed alongside React 19 (for now), but I don't like it as a permanent fix. Hopefully a better solution is in the works.

rodericktech avatar Jun 02 '25 14:06 rodericktech

this is cursed.

notfatdan avatar Jun 11 '25 13:06 notfatdan

Has anyone had any luck with any solutions to this?

DanDavies-Elementaly avatar Jul 15 '25 13:07 DanDavies-Elementaly

@DanDavies-Elementaly For now we've been living with a package.json override, and we haven't encountered any issues yet for our use cases:

"overrides": {
    "react-simple-maps": {
      "d3-zoom": "^3.0.0",
      "d3-interpolate": "^3.0.1",
      "d3-color": "^3.1.0",
      "d3-geo": "^3.1.0",
      "d3-selection": "^3.0.0",
      "react": "^16.8.0 || 17.x || 18.x || 19.x",
      "react-dom": "^16.8.0 || 17.x || 18.x || 19.x"
    }
  },

jmca avatar Jul 15 '25 14:07 jmca

I created a PR to fix this: https://github.com/zcreativelabs/react-simple-maps/pull/377

mdvanes avatar Jul 17 '25 10:07 mdvanes

Do we have a rough idea of when React 19 will be officially supported? It's very important for me.

FabrizioRingmaster avatar Aug 14 '25 16:08 FabrizioRingmaster

add this in your package.json ->

"overrides": { "react-simple-maps": { "react": "19.1.0", "react-dom": "19.1.0" } }

PraneshK29 avatar Aug 22 '25 16:08 PraneshK29

Is this library dead?

rmartins0 avatar Nov 18 '25 01:11 rmartins0