We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
See this issue on stack overflow: https://stackoverflow.com/questions/73893516/error-export-draw-imported-as-l-was-not-found-in-leaflet
mkdir leaflet-bug cd leaflet-bug npm init npm i leaflet leaflet-draw npm i --save-dev webpack webpack-cli @types/leaflet mkdir src cat << EOF > src/index.js import "leaflet-draw"; import { Draw } from 'leaflet'; new Draw.Circle(); EOF node_modules/.bin/webpack
It will produce the following webpack warning:
export 'Draw' (imported as 'Draw') 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)
I believe this is related to #8329
leaflet-draw should work with leaflet 1.9.1
One has to fix the leaflet version to 1.8.0 to work with leaflet-draw.
No response
webpack 5.74
The text was updated successfully, but these errors were encountered:
Duplicate of #8451. We're releasing v1.9.2 today that will address this.
Sorry, something went wrong.
No branches or pull requests
Checklist
Steps to reproduce
See this issue on stack overflow: https://stackoverflow.com/questions/73893516/error-export-draw-imported-as-l-was-not-found-in-leaflet
It will produce the following webpack warning:
I believe this is related to #8329
Expected behavior
leaflet-draw should work with leaflet 1.9.1
Current behavior
One has to fix the leaflet version to 1.8.0 to work with leaflet-draw.
Minimal example reproducing the issue
No response
Environment
webpack 5.74
The text was updated successfully, but these errors were encountered: