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

@typescript-eslint/parser peer dependency is not updated #27630

Closed
1 of 4 tasks
hard-rox opened this issue Aug 24, 2024 · 2 comments
Closed
1 of 4 tasks

@typescript-eslint/parser peer dependency is not updated #27630

hard-rox opened this issue Aug 24, 2024 · 2 comments

Comments

@hard-rox
Copy link

Current Behavior

In @nx/eslint-plugin there is a peer dependency of @typescript-eslint/parser: ^6.13.2 || ^7.0.0 which is preety backward since current @typescript-eslint/parser version is 8.2.0.
So current behavior of npm i is

npm error code ERESOLVE
npm error ERESOLVE could not resolve
npm error
npm error While resolving: @nx/[email protected]
npm error Found: @typescript-eslint/[email protected]
npm error node_modules/@typescript-eslint/parser
npm error   dev @typescript-eslint/parser@"^8.2.0" from the root project
npm error   peer @typescript-eslint/parser@"^8.0.0 || ^8.0.0-alpha.0" from @typescript-eslint/[email protected]
npm error   node_modules/@typescript-eslint/eslint-plugin
npm error     dev @typescript-eslint/eslint-plugin@"^8.2.0" from the root project
npm error
npm error Could not resolve dependency:
npm error peer @typescript-eslint/parser@"^6.13.2 || ^7.0.0" from @nx/[email protected]
npm error node_modules/@nx/eslint-plugin
npm error   dev @nx/eslint-plugin@"19.6.2" from the root project
npm error   @nx/eslint-plugin@"19.6.2" from @nrwl/[email protected]
npm error   node_modules/@nrwl/eslint-plugin-nx
npm error     @nrwl/eslint-plugin-nx@"19.6.2" from @nx/[email protected]
npm error
npm error Conflicting peer dependency: @typescript-eslint/[email protected]
npm error node_modules/@typescript-eslint/parser
npm error   peer @typescript-eslint/parser@"^6.13.2 || ^7.0.0" from @nx/[email protected]
npm error   node_modules/@nx/eslint-plugin
npm error     dev @nx/eslint-plugin@"19.6.2" from the root project
npm error     @nx/eslint-plugin@"19.6.2" from @nrwl/[email protected]
npm error     node_modules/@nrwl/eslint-plugin-nx
npm error       @nrwl/eslint-plugin-nx@"19.6.2" from @nx/[email protected]
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.
npm error
npm error
npm error For a full report see:
npm error /home/runner/.npm/_logs/2024-08-23T23_33_02_560Z-eresolve-report.txt
npm error A complete log of this run can be found in: /home/runner/.npm/_logs/2024-08-23T23_33_02_560Z-debug-0.log
Error: Process completed with exit code 1.

Expected Behavior

npm i success.

GitHub Repo

https://github.com/nrwl/nx/tree/master/packages/eslint-plugin

Steps to Reproduce

  1. Install @typescript-eslint/parser
  2. Add @nx/eslint-plugin
  3. npm i

Nx Report

NX   Report complete - copy this into the issue template

Node           : 22.4.1
OS             : darwin-arm64
Native Target  : aarch64-macos
npm            : 10.8.1

nx                 : 19.6.2
@nx/js             : 19.6.2
@nx/jest           : 19.6.2
@nx/linter         : 19.6.2
@nx/eslint         : 19.6.2
@nx/workspace      : 19.6.2
@nx/angular        : 19.6.2
@nx/cypress        : 19.6.2
@nx/devkit         : 19.6.2
@nrwl/devkit       : 19.5.3
@nx/eslint-plugin  : 19.6.2
@nx/storybook      : 19.6.2
@nrwl/tao          : 19.6.2
@nx/web            : 19.6.2
@nx/webpack        : 19.6.2
typescript         : 5.5.4
---------------------------------------
Registered Plugins:
@nx-dotnet/core
---------------------------------------
Community plugins:
@nx-dotnet/core    : 2.4.3
@storybook/angular : 8.2.9
apollo-angular     : 7.1.2
---------------------------------------
The following packages should match the installed version of nx
  - @nrwl/[email protected]

To fix this, run `nx migrate [email protected]`

Failure Logs

npm error code ERESOLVE
npm error ERESOLVE could not resolve
npm error
npm error While resolving: @nx/[email protected]
npm error Found: @typescript-eslint/[email protected]
npm error node_modules/@typescript-eslint/parser
npm error   dev @typescript-eslint/parser@"^8.2.0" from the root project
npm error   peer @typescript-eslint/parser@"^8.0.0 || ^8.0.0-alpha.0" from @typescript-eslint/[email protected]
npm error   node_modules/@typescript-eslint/eslint-plugin
npm error     dev @typescript-eslint/eslint-plugin@"^8.2.0" from the root project
npm error
npm error Could not resolve dependency:
npm error peer @typescript-eslint/parser@"^6.13.2 || ^7.0.0" from @nx/[email protected]
npm error node_modules/@nx/eslint-plugin
npm error   dev @nx/eslint-plugin@"19.6.2" from the root project
npm error   @nx/eslint-plugin@"19.6.2" from @nrwl/[email protected]
npm error   node_modules/@nrwl/eslint-plugin-nx
npm error     @nrwl/eslint-plugin-nx@"19.6.2" from @nx/[email protected]
npm error
npm error Conflicting peer dependency: @typescript-eslint/[email protected]
npm error node_modules/@typescript-eslint/parser
npm error   peer @typescript-eslint/parser@"^6.13.2 || ^7.0.0" from @nx/[email protected]
npm error   node_modules/@nx/eslint-plugin
npm error     dev @nx/eslint-plugin@"19.6.2" from the root project
npm error     @nx/eslint-plugin@"19.6.2" from @nrwl/[email protected]
npm error     node_modules/@nrwl/eslint-plugin-nx
npm error       @nrwl/eslint-plugin-nx@"19.6.2" from @nx/[email protected]
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.
npm error
npm error
npm error For a full report see:
npm error /home/runner/.npm/_logs/2024-08-23T23_33_02_560Z-eresolve-report.txt
npm error A complete log of this run can be found in: /home/runner/.npm/_logs/2024-08-23T23_33_02_560Z-debug-0.log
Error: Process completed with exit code 1.

Package Manager Version

No response

Operating System

  • macOS
  • Linux
  • Windows
  • Other (Please specify)

Additional Information

No response

@JamesHenry
Copy link
Collaborator

Duplicate of the pinned issue: #27451

@JamesHenry JamesHenry closed this as not planned Won't fix, can't repro, duplicate, stale Aug 26, 2024
Copy link

This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants