jsx-eslint / eslint-plugin-react

React-specific linting rules for ESLint
MIT License
8.97k stars 2.77k forks source link

[Bug]: Not compatible with eslint #3775

Closed ejgutierrez74 closed 3 months ago

ejgutierrez74 commented 3 months ago

Is there an existing issue for this?

Description Overview

I want to update my current react-app with npm update, im facing an error of compatibility....

eduardo@MiPcLinux:~/Descargas/workshop-react$ npm update
npm error code ERESOLVE
npm error ERESOLVE unable to resolve dependency tree
npm error
npm error While resolving: workshop-react@0.0.0
npm error Found: eslint@9.5.0
npm error node_modules/eslint
npm error   eslint@"^9.3.0" from the root project
npm error
npm error Could not resolve dependency:
npm error peer eslint@"^3 || ^4 || ^5 || ^6 || ^7 || ^8" from eslint-plugin-react@7.34.3
npm error node_modules/eslint-plugin-react
npm error   dev eslint-plugin-react@"^7.34.1" from the root project
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/eduardo/.npm/_logs/2024-06-27T09_59_34_909Z-eresolve-report.txt

npm error A complete log of this run can be found in: /home/eduardo/.npm/_logs/2024-06-27T09_59_34_909Z-debug-0.log

Log file:


'Log files:
/home/eduardo/.npm/_logs/2024-06-27T09_59_34_909Z-debug-0.log

# npm resolution error report

While resolving: workshop-react@0.0.0
Found: eslint@9.5.0
node_modules/eslint
  eslint@"^9.3.0" from the root project

Could not resolve dependency:
peer eslint@"^3 || ^4 || ^5 || ^6 || ^7 || ^8" from eslint-plugin-react@7.34.3
node_modules/eslint-plugin-react
  dev eslint-plugin-react@"^7.34.1" from the root project

Fix the upstream dependency conflict, or retry
this command with --force or --legacy-peer-deps
to accept an incorrect (and potentially broken) dependency resolution.

Link to the project: https://github.com/ejgutierrez74/workshop-react-eduardo

npm update

Expected Behavior

update eslint and eslint-react-plugin to latest versions....

eslint-plugin-react version

7.34.1

eslint version

9.3.0

node version

20.12.2

lorenz-maurer commented 3 months ago

I'm in the same boat here.

npm ERR! Found: eslint@9.5.0
npm ERR! node_modules/eslint
npm ERR!   dev eslint@"^9.4.0" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer eslint@"^3 || ^4 || ^5 || ^6 || ^7 || ^8" from eslint-plugin-react@7.34.3
npm ERR! node_modules/eslint-plugin-react
npm ERR!   dev eslint-plugin-react@"^7.34.3" from the root project
ljharb commented 3 months ago

It's not a bug, we're just not compatible with v9 yet - which means you can't upgrade until we are, or until you stop using this plugin.

Duplicate of #3699.

ejgutierrez74 commented 3 months ago

Sorry i didnt find the duplicate, is there any ETA or version release when eslint-react would be compatible with eslint 9 ? How is the work going ?

ljharb commented 3 months ago

Follow #3759; there's no ETA or timeline yet.