React Leaflet Search Peer Dependency Issue Inquiry

Skip to first unread message

Mary Solorzano

May 25, 2022, 1:52:29 PM5/25/22
to Leaflet
Has anyone been able to use the React Leaflet Search  v2.0.1 npm package library with React v18? I’ve tried running…npm install react-leaflet-search --legacy-peer-deps as listed on stack overflow ( as a solution, but I keep getting the same error that the react 18 dependency doesn’t work with react-leaflet-search because the peer dependency for react-search is react": "^16.12.0".  My goal is to be able to allow users to enter latlng into a  search input field on the map and have the user taken to those coordinates within the map.  

Thanks for any help offered!! 

Reply all
Reply to author
0 new messages