-
-
Notifications
You must be signed in to change notification settings - Fork 203
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
Revert "chore(deps-dev): bump react from 18.3.1 to 19.0.0" #433
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -225,7 +225,7 @@ | |
"rc-footer": "^0.6.8", | ||
"rc-resize-observer": "^1.4.0", | ||
"rc-virtual-list": "^3.14.5", | ||
"react": "^19.0.0", | ||
"react": "^18.3.1", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion 建议更新相关的类型定义 注意到 - "@types/react": "^19.0.2",
+ "@types/react": "^18.2.0",
- "@types/react-dom": "^19.0.2",
+ "@types/react-dom": "^18.2.0", Also applies to: 230-230, 108-108 💡 Codebase verification 注意 React 版本不匹配问题 经过验证,发现以下问题:
建议:
🔗 Analysis chain验证开发环境的兼容性 注意到 Also applies to: 230-230, 74-74 🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# 检查项目中是否存在使用了 React 19 特性的代码
rg -l "use(Sync|Transition|Deferred|Id|Optimistic)"
Length of output: 204 Script: #!/bin/bash
# 检查具体的 React Hook 使用情况
rg "use(Sync|Transition|Deferred|Id|Optimistic)" -A 2
# 检查 package.json 中的相关配置
cat package.json | jq '.scripts.site'
Length of output: 2993 |
||
"react-copy-to-clipboard": "^5.1.0", | ||
"react-countup": "^6.5.3", | ||
"react-dom": "^18.3.1", | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reverting the React version from 19.0.0 to 18.3.1 may be necessary due to compatibility issues with other dependencies or stability concerns. Ensure that all dependent packages are compatible with React 18.3.1.