Wildhoney / Leaflet.FreeDraw

:earth_asia: FreeDraw allows the free-hand drawing of shapes on your Leaflet.js map layer – providing an intuitive and familiar UX for creating geospatial boundaries similar to Zoopla and others. Included out-of-the-box is the concaving of polygons, polygon merging and simplifying, as well as the ability to add edges and modify existing shapes.
https://freedraw.herokuapp.com/
MIT License
544 stars 103 forks source link

webpack go wrong #132

Closed DaHuLuBa closed 5 years ago

DaHuLuBa commented 5 years ago

image

I started reporting errors when I started the project

will4906 commented 5 years ago

I have the same problem!!!

Wildhoney commented 5 years ago

You need to be using the web version, not the CJS version. I've just added the browser key to the package.json file, so hopefully that should pick up the right one for you.

ankeetmaini commented 5 years ago

The latest code isn't published to npm. Also the web version will attach itself as a global object. Can't use it in ES6 imports. Please see #133