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 find a version of ajv that satisfies the peerDependencies #21543

Closed
ikselll opened this issue Jun 13, 2023 · 2 comments
Closed

Unable to find a version of ajv that satisfies the peerDependencies #21543

ikselll opened this issue Jun 13, 2023 · 2 comments

Comments

@ikselll
Copy link

ikselll commented Jun 13, 2023

Environment

System:
OS: macOS 13.4
CPU: (8) arm64 Apple M1 Pro
Memory: 79.64 MB / 32.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 18.16.0 - /usr/local/bin/node
Yarn: 1.22.19 - /usr/local/bin/yarn
npm: 9.5.1 - /usr/local/bin/npm
Watchman: 2023.06.08.00 - /opt/homebrew/bin/watchman
Browsers:
Brave Browser: 110.1.48.158
Chrome: 114.0.5735.106
Edge: 113.0.1774.57
Safari: 16.5
npmPackages:
nuxt: ^2.17.0 => 2.17.0

Reproduction

https://github.com/ikselll/nuxt-ajv + README.md

Describe the bug

After upgrade from 2.15.8 to 2.16.x or 2.17.x some deps changed and there is version mismatch.

Additional context

No response

Logs

nuxt-ajv git:(master) ✗ npm run show-issue

> nuxt-ajv@1.0.0 show-issue
> npx check-peer-dependencies

  ✅  ajv ^6.9.1 is required by ajv-keywords@3.5.2 (6.12.6 is installed)
  ✅  ajv >=5.0.0 is required by ajv-errors@1.0.1 (6.12.6 is installed)
  ❌  ajv ^8.8.2 is required by ajv-keywords@5.1.0) (6.12.6 is installed)

Search for solutions using this command:

npx check-peer-dependencies --findSolutions

Install peerDependencies using this command:

npx check-peer-dependencies --install

➜  nuxt-ajv git:(master) ✗ npx check-peer-dependencies --findSolutions
  ✅  ajv ^6.9.1 is required by ajv-keywords@3.5.2 (6.12.6 is installed)
  ✅  ajv >=5.0.0 is required by ajv-errors@1.0.1 (6.12.6 is installed)
  ❌  ajv ^8.8.2 is required by ajv-keywords@5.1.0) (6.12.6 is installed)

Searching for solutions for 1 missing dependencies...

  ❌  Unable to find a version of ajv that satisfies the following peerDependencies: ^6.9.1 and >=5.0.0 and ^8.0.0 and ^8.8.2
@danielroe
Copy link
Member

Yes, this issue seems to be caused by webpack dev middleware having a newer dependency.

@ikselll
Copy link
Author

ikselll commented Jun 14, 2023

@danielroe do U see any workaround for now? Maybe I can downgrade some deps installing previous version direct in project dev deps? I tried do it for ajv directly but no luck.

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

No branches or pull requests

2 participants