react-leaflet-kml
react-leaflet-kml copied to clipboard
NPM Could not resolve dependency when using React 17
Hey thanks for your work on the package.
I was wondering if you will be soon bumping the peer dependency to React version 17.
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.8.0" from [email protected]
Thanks
@jpmc3630 Hi,
I released version 2.0.3 which allows any react version equals or higher than 16.8.0.
Still open as the target moves. Right now react-leaflet-kml has
peer react-leaflet@"^3.0.0" from [email protected]
But the current react-leaflet is react-leaflet@"^4.0.0" which supports react 18.2.0 (not 17) which is what all my code is on.
Any plans to bump react-leaflet-kml to react-leaflet@^4.0.0 in the near future? Or is this something you can point me toward doing? I think react-leaflet-kml is the ticket for me, I've spent a lot of time trying to get common JS KML stuff to work in React.
@sammyjava Hi,
I have added support for leaflet 1.8.0, react leaflet 4 and react 18. You can try version 2.0.4. You can check the codesandbox example that uses leaflet 1.8.0 and react 18: https://codesandbox.io/s/basic-usage-react-leaflet-v3-pzcvt
Thank you so much! This is great! I'll give you attribution on the site. You rock!
May have to thin them out a bit... :) (Gasoline stations with ethanol-free gas, from pure-gas.org)
