react-geojson-cluster
react-geojson-cluster copied to clipboard
Cannot read property 'addLayer' of undefined
Hello. I have a problem. When i want to include geojson to map, i have this error
Uncaught (in promise) TypeError: Cannot read property 'addLayer' of undefined at GeoJsonCluster.componentDidMount (MapLayer.js:46)
i using: "leaflet": "^1.0.3", "react": "^15.0.0", "react-leaflet": "^1.1.0", "react-leaflet-geojson-cluster": "^0.1.8",
I had the same issue and rolled back my react-leaflet to v0.10.2. Seemed to clear up that issue, but I haven't dug in on why yet.