Skip to content

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

@jhotadhari

Description

@jhotadhari

Got the above error after updating react-leaflet from 3.2.1 to 3.2.2 and the map doesn't render anymore.

The above error occurred in the <ForwardRef(LeafComponent)> component:
    in ForwardRef(LeafComponent) (created by FullscreenWithEvents)
    in FullscreenWithEvents (created by LocationsMap)
    in div (created by MapContainer)
    in MapContainer (created by LocationsMap)
    in div (created by LocationsMap)
    in LocationsMap

When I disable react-leaflet-fullscreen-plugin the map renders again

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions