Skip to content

Update peer dependencies #12

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

willmcclellan
Copy link

I had an issue with the peer dependencies where and older version of leaflet would be installed on top of my applications leaflet dependency causing a mismatch between the marker file div-icon loaded and the leaflet version.

  • Parent project uses leaflet 1.x.x
  • react-leaflet-div-icon specifies peer dependency of 0.x.x
  • when dependencies are installed, leaflet 1.x.x will be installed in root node_modules but react-leaflet-div-icon will also get leaflet 0.x.x in it's dependencies
  • when react-leaflet-div-icon looks for the marker module in leaflet, it first looks its local node_modules for leaflet, which it finds and then I get an error because of module mismatch

I've updated the peer dependencies to specify the 1.x.x versions which I think should be fine because it looks like you've included updates recently to support react-leaflet's newer api and therefore the module is probably not compatible with older versions of leaflet/react-leaflet anyway

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant