alex3165 / react-mapbox-gl

A React binding of mapbox-gl-js
http://alex3165.github.io/react-mapbox-gl/
MIT License
1.93k stars 536 forks source link

Use react-mapbox-gl with react: 18.2.0 #1033

Closed thanosoncode closed 6 months ago

thanosoncode commented 7 months ago

Is there a way to add react-mapbox-gl in a react:18.2.0 project? I get a peer dependency error when trying adding it.

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! Found: mapbox-gl@3.2.0
npm ERR! node_modules/mapbox-gl
npm ERR!   mapbox-gl@"^3.2.0" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer mapbox-gl@"^1.12.0" from react-mapbox-gl@5.1.1
npm ERR! node_modules/react-mapbox-gl
npm ERR!   react-mapbox-gl@"*" from the root project
justinrex commented 6 months ago

Ran into the same issue. Looking at it this package hasn't been contributed to in 4 years. I don't think it's maintained any longer. Probably time to migrate away

thanosoncode commented 6 months ago

indeed lets move on