Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
BowgartField opened this issue Aug 11, 2021 · 5 comments
Labels

Comments

@BowgartField
Copy link

BowgartField commented Aug 11, 2021

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
Copy link

diggis00 commented Sep 2, 2021

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

@BowgartField
Copy link
Author

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

Sadly no

@stale
Copy link

stale bot commented Oct 4, 2021

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.

@stale stale bot added the wontfix label Oct 4, 2021
@stale stale bot closed this as completed Oct 11, 2021
@maxim-s-barabash
Copy link

maxim-s-barabash commented Oct 22, 2021

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

@maxim-s-barabash
Copy link

related problem PaulLeCam/react-leaflet#897

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants