React Leaflet Search Peer Dependency Issue Inquiry

18 views
Skip to first unread message

Mary Solorzano

unread,
May 25, 2022, 1:52:29 PMMay 25
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 (https://stackoverflow.com/questions/69324734/problem-when-i-install-react-leaflet-search) 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
Forward
0 new messages