reactjs / reactjs/react.dev

[Bug]: Unable to install eslint-plugin-react-compiler

Open
#6,961 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug: unconfirmed
Dominant language
JavaScript
Stars
11.8k
Forks
7.9k
Avg merge
1d 11h
Merged PRs (30d)
11

Description

Summary

Here (https://react.dev/learn/react-compiler) you are instructing us to run npm install eslint-plugin-react-compiler. But it causes an error:

npm error code ERESOLVE
npm error ERESOLVE could not resolve
npm error
npm error While resolving: @react-native-async-storage/async-storage@1.15.16
npm error Found: react-native@0.73.8
npm error node_modules/react-native
npm error peer react-native@">=0.60.0" from react-native-bootsplash@3.2.7
npm error node_modules/react-native-bootsplash
npm error react-native-bootsplash@"^3.2.3" from the root project
npm error peer react-native@">= 0.60" from react-native-branch@6.2.1
npm error node_modules/react-native-branch
npm error react-native-branch@"6.2.1" from the root project
npm error 37 more (react-native-collapsible, react-native-device-info, ...)
npm error
npm error Could not resolve dependency:
npm error peer react-native@"^0.0.0-0 || 0.60 - 0.67 || 1000.0.0" from @react-native-async-storage/async-storage@1.15.16
npm error node_modules/@react-native-async-storage/async-storage
npm error @react-native-async-storage/async-storage@"^1.15.15" from the root project
npm error
npm error Conflicting peer dependency: react-native@1000.0.0
npm error node_modules/react-native
npm error peer react-native@"^0.0.0-0 || 0.60 - 0.67 || 1000.0.0" from @react-native-async-storage/async-storage@1.15.16
npm error node_modules/@react-native-async-storage/async-storage
npm error @react-native-async-storage/async-storage@"^1.15.15" 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.

Page

https://react.dev/learn/react-compiler

Details

See attached log.
error.log

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Open the React Compiler instructions at https://react.dev/learn/react-compiler and reproduce npm install eslint-plugin-react-compiler, using the attached error log as the starting evidence. Confirm the documented command or its guidance addresses the reported ERESOLVE failure; done means the installation path no longer leads to the reported conflict.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
documentation
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.