Skip to content
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

🐛 [BUG] Ant Design Pro 6.0 报警告 Warning: findDOMNode is deprecated and will be removed in the next major release. #11226

Open
vwalexanderjin opened this issue May 3, 2024 · 4 comments

Comments

@vwalexanderjin
Copy link

🐛 bug 描述

Ant Design Pro 6.0 报警告 Warning: findDOMNode is deprecated and will be removed in the next major release.

📷 复现步骤 | Recurrence steps

执行yarn start 即报此bug。

🏞 期望结果 | Expected results

可以不出此警告不,强迫症看着难受。

💻 复现代码 | Recurrence code

无需复现。一运行就报此警告。

© 版本信息

  • Ant Design Pro 版本: [6.0.0]
  • umi 版本 [4]
  • 浏览器环境 Chrome 124.0.6367.118
  • 开发环境 [Win10]

🚑 其他信息

2
3

@qindj
Copy link

qindj commented May 6, 2024

Ant Design已经在追踪这个问题了,#ant-design/ant-design#48709

@xianyunyh
Copy link

React发布了新的版本,在新的版本18.3.0中加入了警告提示

  • Warn for deprecated findDOMNode outside StrictMode

https://github.com/facebook/react/releases/tag/v18.3.0

@Ding95
Copy link

Ding95 commented May 9, 2024

React发布了新的版本,在新的版本18.3.0中加入了警告提示

  • Warn for deprecated findDOMNode outside StrictMode

https://github.com/facebook/react/releases/tag/v18.3.0

手动改下react的版本就好了

yarn remove react react-dom
yarn add react@18.2.0 react-dom@18.2.0

@W-ang-nan
Copy link

我就是18.2.0版本也是有报错的,buttton按钮点击就会报错

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants