-
Notifications
You must be signed in to change notification settings - Fork 23
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
fix: use default export instead of named export #42
Conversation
@@ -8,7 +8,7 @@ | |||
"John Gravois <[email protected]> (http://johngravois.com)" | |||
], | |||
"dependencies": { | |||
"esri-leaflet": "^2.0.0", | |||
"esri-leaflet": "^3.0.2", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this change necessary? It does not seem related to the main change in this PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
esri-leaflet had the same issue. I suppose you have to use an updated version, otherwise you run into the same problem. See Esri/esri-leaflet#1273
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
another option: jgravois/esri-leaflet-gp#46
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any update about this? Currently running into the same issue
@gavinr you mentioned that this was fixed in esri-leaflet v3.0.2 (Esri/esri-leaflet#1273 (comment)) I'm guessing that's why the dependency to esri-leaflet is updated to v3.0.2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ran into the same issue, had to fork this library and force npm to resolve the package to my fork. Without fixing the version import and updating esri-leaflet to 3.0 the library cannot be used in projects built with webpack 5.
Thanks for the feedback everyone. It seems like there are two things that this PR is doing:
I'd prefer that we remove the |
Any idea when this PR will be merged. Or are you waiting for a response? |
@gavinr I'm using the library right now so if it helps i can open two separate pull requests so that we don't have to wait for the author of this PR to make changes |
This has been resolved in v3.0.0 https://github.com/Esri/esri-leaflet-cluster/releases/tag/v3.0.0 |
With this you can use Webpack 5 without warnings (or even errors in case of angular 12).
All credits to @destus90, who fixed the same thing in the esri-leaflet package (Esri/esri-leaflet#1273)
https://webpack.js.org/migrate/5/#cleanup-the-code