yuzhva / react-leaflet-markercluster

React wrapper of the official Leaflet.markercluster for react-leaflet
https://yuzhva.github.io/react-leaflet-markercluster/
MIT License
285 stars 99 forks source link

Error: No context provided: useLeafletContext() can only be used in a descendant of <MapContainer> #156

Closed BowgartField closed 2 years ago

BowgartField commented 2 years ago

Hi huys, I'm trying to use this library but i got this problem: Error: No context provided: useLeafletContext() can only be used in a descendant of <MapContainer> When i 'm trying to create a in my

I tried the @monsonjeremy's version but it didn't work better. There is my package.json: image

Thanks you so much for replies !

diggis00 commented 2 years ago

Hey, I am getting same issue, did you get any fix?

BowgartField commented 2 years ago

Hey, I am getting same issue, did you get any fix?

Sadly no

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

maxim-s-barabash commented 2 years ago

I am getting same issue downgrading "react-leaflet" to "3.2.1" fixes the problem.

maxim-s-barabash commented 2 years ago

related problem https://github.com/PaulLeCam/react-leaflet/issues/897