[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