[Bug]: Unable to install eslint-plugin-react-compiler
还没有人认领这个 Issue。
- 主要语言
- JavaScript
- 星标
- 11.8k
- 派生
- 7.9k
- 平均合并
- 1 天 11 小时
- 30 天内合并 PR
- 11
描述
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
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
打开 https://react.dev/learn/react-compiler 中的 React Compiler 说明,并重新执行 npm install eslint-plugin-react-compiler,以附加的错误日志作为起始证据。确认文档中的命令或其指导能够解决报告的 ERESOLVE 失败;当安装路径不再导致报告的冲突时,即视为完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- javascript, react
- 领域
- documentation
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100