-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
[BUG] peerDependency
package version doesn't resolve correctly
#4958
Comments
I think this is probably as intended. npm does not include prerelease versions when looking for You can try this out in the semver calculator: |
this is, indeed, intended. prereleases are a bit tricky that way. you might consider taking a look at the docs for overrides to help you force it though! |
Finally, someone else starts to complaining about the same thing: https://twitter.com/dan_abramov/status/1641574203617943557
|
Months later, there is a new victim. https://twitter.com/NicoloRibaudo/status/1682341361251385345
|
It breaks when using pre-releases. See npm/cli#4958
Is there an existing issue for this?
There are some similar existing issues like #4442 and #4104, don't know if they are related.
This issue exists in the latest npm version
Current Behavior
Expected Behavior
npm should be able to resolve the dependency tree since
eslint-config-next
requires a peer dependency ofnext >= 10.2.0
, which12.1.7-canary.23
does satisfy the constraint.Steps To Reproduce
$ npm -v 8.11.0 $ mkdir -p npm-issue-peer-deps $ cd npm-issue-peer-deps $ npm init -y $ npm i next@canary eslint-config-next@canary
Environment
The text was updated successfully, but these errors were encountered: