Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: export 'markerClusterGroup' (imported as 'L') was not found in 'leaflet' #71

Open
poultryAppIndia opened this issue Sep 30, 2022 · 2 comments

Comments

@poultryAppIndia
Copy link

poultryAppIndia commented Sep 30, 2022

global Angular CLI version (14.2.4)
local version (12.2.18).

"@types/leaflet": "^1.7.9",
"@types/leaflet-polylinedecorator": "^1.6.1",
"@types/leaflet-rotatedmarker": "^0.2.2",
"@types/leaflet.markercluster": "^1.4.6",

"leaflet": "^1.7.1",
"leaflet-arrowheads": "^1.2.3",
"leaflet-drift-marker": "^2.0.0",
"leaflet-polylinedecorator": "^1.6.0",
"leaflet-rotatedmarker": "^0.2.0",
"leaflet-routing-machine": "^3.2.12",
"leaflet.marker.slideto": "^0.3.0",
"leaflet.markercluster": "^1.5.3",

/node_modules/@asymmetrik/ngx-leaflet-markercluster/__ivy_ngcc__/dist/leaflet-markercluster/leaflet-markercluster.directive.js:18:34-54 - Error: export 'markerClusterGroup' (imported as 'L') was not found in 'leaflet' (possible exports: Bounds, Browser, CRS, Canvas, Circle, CircleMarker, Class, Control, DivIcon, DivOverlay, DomEvent, DomUtil, Draggable, Evented, FeatureGroup, GeoJSON, GridLayer, Handler, Icon, ImageOverlay, LatLng, LatLngBounds, Layer, LayerGroup, LineUtil, Map, Marker, Mixin, Path, Point, PolyUtil, Polygon, Polyline, Popup, PosAnimation, Projection, Rectangle, Renderer, SVG, SVGOverlay, TileLayer, Tooltip, Transformation, Util, VideoOverlay, bind, bounds, canvas, circle, circleMarker, control, default, divIcon, extend, featureGroup, geoJSON, geoJson, gridLayer, icon, imageOverlay, latLng, latLngBounds, layerGroup, map, marker, noConflict, point, polygon, polyline, popup, rectangle, setOptions, stamp, svg, svgOverlay, tileLayer, tooltip, transformation, version, videoOverlay)

@kprasad99
Copy link

Getting same error for me as well. my angular version is 13.3.0

@kprasad99
Copy link

kprasad99 commented Oct 17, 2022

I solved this problem by setting "allowSyntheticDefaultImports": true in tsconfig.json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants