Not compatible with React@19
Attempting to install react-simple-maps with React 19 fails due to peer dependency conflicts.
how you resolve this?
Does installing with --legacy-peer-deps not work?
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.
this is cursed.
Has anyone had any luck with any solutions to this?
@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"
}
},
I created a PR to fix this: https://github.com/zcreativelabs/react-simple-maps/pull/377
Do we have a rough idea of when React 19 will be officially supported? It's very important for me.
add this in your package.json ->
"overrides": { "react-simple-maps": { "react": "19.1.0", "react-dom": "19.1.0" } }
Is this library dead?