Skip to content
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

"Unable to resolve package" when package/version exists #1218

Closed
andrewfulrich opened this issue Apr 21, 2020 · 3 comments
Closed

"Unable to resolve package" when package/version exists #1218

andrewfulrich opened this issue Apr 21, 2020 · 3 comments

Comments

@andrewfulrich
Copy link

andrewfulrich commented Apr 21, 2020

I'm trying to move some examples over to stackblitz but ran into this error installing @bayer/ol-kit
image

Reproduction steps:

  • add ol@4.6.5 to dependencies to see that installs just fine by itself
  • add @bayer/ol-kit to dependencies to see the error message

This looks similar to #286 and #175
but I don't see any malformations in the package.json at https://github.com/MonsantoCo/ol-kit/blob/v0.2.2/package.json

Why would it look for ol@~4.0 when the dependency in the package.json specifies ol@4.6.5? Wouldn't it at least look for ol@~4.6?

@EricSimons
Copy link
Member

Hm, do any subdependencies of @bayer/ol-kit specify ol@~4.6? That's the most likely culprit. I can investigate this deeper but any additional info would be super helpful so I can get to the bottom of it quicker

@andrewfulrich
Copy link
Author

You're right, ol@~4.0 a dependency of @terrestris/ol-util@0.5.0 which is a dependency of geostyler-openlayers-parser@0.21.0. When I install it locally, it does npm WARN that this is an unmet peer dependency:
image
but it works fine locally despite the warning, since the peer dependency of ol-kit itself is ol@4.6.5 and that gets installed. Is there any way for Stackblitz to ignore peer dependency warnings?

@kc0tlh
Copy link
Collaborator

kc0tlh commented Aug 23, 2023

@andrewfulrich, sorry for the delayed response! This issue should be resolved in our new VS Code editor! If it doesn't work out of the box, try this command: npm install --legacy-peer-deps and let us know!

@kc0tlh kc0tlh closed this as completed Aug 23, 2023
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

No branches or pull requests

3 participants