Closed ckoberlein closed 4 years ago
Thanks for the report @ckoberlein. Seems like a good idea to me. @jgravois has this issue come up before? If this is the best way to do it, should we do it in other plugins (like esri-leaflet-geocoder) too?
peerDependencies
would be a more forgiving approach and save potential debugging time for users.
this makes sense to me and is the route we took with rest-js. see https://github.com/Esri/arcgis-rest-js/pull/506 for more info.
Thanks for getting to this so quickly!
This is released in https://github.com/Esri/esri-leaflet-renderers/releases/tag/v2.1.1
We had some trouble recently where
esri-leaflet-renderers
was not plugging in properly toesri-leaflet
in our application.The problem was due to a minor version mismatch in
esri-leaflet
in ourpackage.json
file (2.3.3) versus the one defined and installed withesri-leaflet-renderers
(^2.0.0 resolving to 2.4.1). This led to having two different versions ofesri-leaflet
in the application - the one we use add layers to the map and the one used by the renderers module.Changing the packages from
dependencies
topeerDependencies
would be a more forgiving approach and save potential debugging time for users.Thanks.