Giter Club home page Giter Club logo

react-leaflet-fullscreen-plugin's People

Contributors

elangobharathi avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

react-leaflet-fullscreen-plugin's Issues

old peer dependencies cause npm install fail

npm i causes:

PS C:\Users\alexa\apf2> npm i
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/react
npm ERR!   react@"18.2.0" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^17.0.2" from [email protected]
npm ERR! node_modules/react-leaflet-fullscreen-plugin
npm ERR!   react-leaflet-fullscreen-plugin@"1.0.1" from the root project
npm ERR! 
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.

Thus the peer dependencies need to be updated.

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

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

TypeScript type definitions?

Are there any TypeScript type definitions available?

with npm i --save-dev @types/react-leaflet-fullscreen-plugin I do not have any success.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.