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
fix: compatible with react 17 #46261
Conversation
Run & review this pull request in StackBlitz Codeflow. |
size-limit report 📦
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 3e8a129:
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #46261 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 708 708
Lines 12108 12110 +2
Branches 3211 3211
=========================================
+ Hits 12108 12110 +2 ☔ View full report in Codecov by Sentry. |
啊, 这个menu 用例咋通过的 |
when will it be released? |
如果某个方法没有被导出,webpack 会发出没有 export 的警告,umi 之所以不提示是因为把 warning 都禁了。 可以尝试如下方法越过 webpack 检查: import * as ReactExports from 'react'
const IDENT = 'useId'
const useId = IDENT in ReactExports ? ReactExports[IDENT] : fallback |
[中文版模板 / Chinese template]
🤔 This is a ...
🔗 Related issue link
close #46256
💡 Background and solution
📝 Changelog
useId
error when webpack build with React 17useId
找不到的问题。☑️ Self-Check before Merge