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

Dependency Conflicts with eslint@8 and eslint-config-flat-gitignore needing eslint@9 #507

Open
rmannjbs opened this issue Oct 7, 2024 · 2 comments
Labels
bug Something isn't working documentations

Comments

@rmannjbs
Copy link

rmannjbs commented Oct 7, 2024

Environment


  • Operating System: Linux
  • Node Version: v22.8.0
  • Nuxt Version: 3.13.2
  • CLI Version: 3.14.0
  • Nitro Version: 2.9.7
  • Package Manager: [email protected]
  • Builder: -
  • User Config: -
  • Runtime Modules: -
  • Build Modules: -

Package

None

Reproduction

Version conflicts ensue.

Describe the bug

@nuxt/eslint depends on a version of eslint-config-flat-gitignore that requires eslint@9, but @nuxt/eslint requires 8.57.0. Impossible to satisfy the dependencies without legacy peer deps, or forcing an override.

npm warn peer eslint@"^9.5.0" from [email protected]
npm warn node_modules/@nuxt/eslint/node_modules/@nuxt/eslint-config/node_modules/eslint-config-flat-gitignore
npm warn   eslint-config-flat-gitignore@"^0.3.0" from @nuxt/[email protected]
npm warn   node_modules/@nuxt/eslint/node_modules/@nuxt/eslint-config

Additional context

No response

Logs

npm warn ERESOLVE overriding peer dependency
npm warn While resolving: [email protected]
npm warn Found: [email protected]
npm warn node_modules/eslint
npm warn   dev eslint@"^8.57.0" from the root project
npm warn   36 more (@eslint-community/eslint-utils, ...)
npm warn
npm warn Could not resolve dependency:
npm warn peer eslint@"^9.5.0" from [email protected]
npm warn node_modules/@nuxt/eslint/node_modules/@nuxt/eslint-config/node_modules/eslint-config-flat-gitignore
npm warn   eslint-config-flat-gitignore@"^0.3.0" from @nuxt/[email protected]
npm warn   node_modules/@nuxt/eslint/node_modules/@nuxt/eslint-config
npm warn
npm warn Conflicting peer dependency: [email protected]
npm warn node_modules/eslint
npm warn   peer eslint@"^9.5.0" from [email protected]
npm warn   node_modules/@nuxt/eslint/node_modules/@nuxt/eslint-config/node_modules/eslint-config-flat-gitignore
npm warn     eslint-config-flat-gitignore@"^0.3.0" from @nuxt/[email protected]
npm warn     node_modules/@nuxt/eslint/node_modules/@nuxt/eslint-config
npm warn ERESOLVE overriding peer dependency
npm warn While resolving: @eslint/[email protected]
npm warn Found: [email protected]
npm warn node_modules/eslint
npm warn   dev eslint@"^8.57.0" from the root project
npm warn   36 more (@eslint-community/eslint-utils, ...)
npm warn
npm warn Could not resolve dependency:
npm warn peerOptional eslint@"^9.10.0" from @eslint/[email protected]
npm warn node_modules/@nuxt/eslint/node_modules/@nuxt/eslint-config/node_modules/eslint-config-flat-gitignore/node_modules/@eslint/compat
npm warn   @eslint/compat@"^1.1.1" from [email protected]
npm warn   node_modules/@nuxt/eslint/node_modules/@nuxt/eslint-config/node_modules/eslint-config-flat-gitignore
npm warn
npm warn Conflicting peer dependency: [email protected]
npm warn node_modules/eslint
npm warn   peerOptional eslint@"^9.10.0" from @eslint/[email protected]
npm warn   node_modules/@nuxt/eslint/node_modules/@nuxt/eslint-config/node_modules/eslint-config-flat-gitignore/node_modules/@eslint/compat
npm warn     @eslint/compat@"^1.1.1" from [email protected]
npm warn     node_modules/@nuxt/eslint/node_modules/@nuxt/eslint-config/node_modules/eslint-config-flat-gitignore
@gbyesiltas
Copy link

hey guys, any news on this? it looks like it's not possible to install 0.6 with strict deps :/

@antfu
Copy link
Member

antfu commented Nov 16, 2024

Is there any blocker you are still on ESLint v8? There is a small difference between v9.5.0+ and earlier, and it makes eslint-config-flat-gitignore not able to support both versions. An easier solution might be for @nuxt/eslint to drop support for ESLint v8 all - sooner or later, it will eventually happen - if you can share more context of why ESLint v8 is still a requirement for you, we might reconsider that, and decide our support timeline.

@antfu antfu added bug Something isn't working documentations and removed pending triage labels Nov 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentations
Projects
None yet
Development

No branches or pull requests

3 participants