geoman-io / leaflet-geoman

🍂🗺️ The most powerful leaflet plugin for drawing and editing geometry layers
https://geoman.io
MIT License
2.21k stars 433 forks source link

A error in 2.16.0 #1468

Closed huang-jue closed 6 months ago

huang-jue commented 7 months ago

When I added @geoman-io/leaflet-geoman-free@2.16.0, he reported an error: beb9d1126ff75ef31c50204445771b50

huang-jue commented 7 months ago

When i use import "@geoman-io/leaflet-geoman-free/dist/leaflet-geoman.min.js",this way, the error above will not be reported.But he told me add Controls is undefined. 110066c98fb297439d44fdf7dba9d90f

Falke-Design commented 6 months ago

Release notes:

This is only relevant for projects using very old versions of babel/webpack loaders

This version introduces new build tools in the library build toolchain. More specifically we have swapped webpack for eslint. This has improved our build speeds and made the build pipeline simpler and easier to maintain going forward. However the move to esbuild has also caused the library build assets (minified js files) to be compiled using a more modern version of ECMAScript. The current build files now use the optional chaining ?. syntax and this can cause issues with projects using older versions of webpack/babel or similar loaders.

If you face issues with upgrading to version v2.16.0 we suggest that you upgrade your own loaders and build toolchain to a version compatible with modern ECMAScript syntax.

Duplicate of #1458

huang-jue commented 6 months ago

This is an old project, and if I upgrade, it means I have to redevelop many things