Giter VIP home page Giter VIP logo

Comments (4)

gavinr avatar gavinr commented on June 2, 2024

I have not noticed any issues myself, but seems like a reasonable suggestion to me. If possible, do you have replication steps that would show the issue?

from esri-leaflet-vector.

slutske22 avatar slutske22 commented on June 2, 2024

I created a blank folder, cd into that folder, and initialize an npm package with npm init -y. Then install npm i leaflet esri-leaflet. After that, I npm i esri-leaflet-vector. I get the peerDependency warning:

npm WARN [email protected] requires a peer of esri-leaflet@^2.3.0 but none is installed. You must install peer dependencies yourself.

I guess its a minor issue, but making that change from ^ to > would get rid of that warning, which might be confusing considering this plugin works with esri-leaflet v3.

from esri-leaflet-vector.

gavinr avatar gavinr commented on June 2, 2024

We are running into a similar issue with esri-leaflet-geocoder here: Esri/esri-leaflet-geocoder#272

I plan to change the peerDependencies to "esri-leaflet": ">2.3.0", like you advise, but similar to the esri-leaflet-geocoder we will also update the dependencies version of "esri-leaflet": "^3.0.0",

I'm actually not sure if we need both ... or if only having it listed in one or the other is better ... need to do some research.

from esri-leaflet-vector.

slutske22 avatar slutske22 commented on June 2, 2024

Well it depends. Do you expect your users to install it themselves? Or do you want it to be automatic - i.e., if you install esri-leaflet-geocoder, you get esri-leaflet automatically installed? My inclination would be to keep it under peerDependencies, considering this is a plugin for esri-leaflet, which itself is a plugin for leaflet. IMO, people using this (or geocoder) plugin should take ownership of their leaflet and esri-leaflet installations on their own first - so it should be a peerDep. That's just my humble 2 cents on the matter.

That being said, from what I understand, npm 7 now automatically installs all peerDependencies, so this may be a moot point for npm 7 users.

from esri-leaflet-vector.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.