alex3165 / react-leaflet-draw

React component for leaflet-draw on top of react-leaflet
228 stars 152 forks source link

TypeError: destroy is not a function #145

Closed khatran79 closed 2 years ago

khatran79 commented 2 years ago

I am trying to add react-leaflet-draw into the map.

The code is at https://codesandbox.io/s/elastic-darkness-2ric3h?file=/src/App.js

The map is working fine however got this error TypeError: destroy is not a function

Any idea please?

khatran79 commented 2 years ago

Working fine when downgrade to react from 18 to 17.0.2

brennanwilkes commented 2 years ago

@khatran79 Version 0.20.0 patches this issue. Please let me know if there are any bugs or issues with it