react-leaflet-curve icon indicating copy to clipboard operation
react-leaflet-curve copied to clipboard

Outdated build version?

Open rerodrigues opened this issue 5 years ago • 1 comments

Hi, first of all, thanks for this plugin.

I'm trying to use it with react-leaflet 2+ but it doesn't work without wrapping with withLeaflet, despite the fact that in the source it is already wrapped in the export. It is possible that the main file referenced in the package.json was not updated with the last build?

rerodrigues avatar Feb 29 '20 23:02 rerodrigues

I can reproduce this problem.

Using <Curve> as suggested by the README gives this.props.leaflet is undefined error. I have to import { withLeaflet } from 'react-leaflet'; and wrap Curve manually.

Gowee avatar Mar 09 '21 04:03 Gowee