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] say something findDOMNode is deprecated and will be removed in the next major release. Instead, add a ref directly to the element you want to reference. #12750

Open
dxFlue opened this issue Oct 22, 2024 · 1 comment

Comments

@dxFlue
Copy link

dxFlue commented Oct 22, 2024

What happens?

使用 [email protected] 生成 Ant Design Pro,新启动的项目控制台报 findDOMNode is deprecated and will be removed in the next major release. Instead, add a ref directly to the element you want to reference. 这个错误,查证是 antd 报的,但是没有找到解决方法,
相关 issues https://github.com/ant-design/ant-design/issues/48709,请问怎么解决这个问题

Mini Showcase Repository(REQUIRED)

https://github.com/dxFlue/umiMaxError.git

Please provide a minimal reproduction then upload to your GitHub. 请提供 最小重现,并上传到你的 GitHub 仓库

How To Reproduce

Steps to reproduce the behavior: 1. 2.

Expected behavior 1. 2.

Context

  • Umi Version: 4.3.27
  • Node Version: 20.15.0
  • Platform: win11
@xiaohuoni
Copy link
Member

react 是什么版本,看相关 issues 里面的说明,可以把 react 锁在 @18.2.0 就可以使用 [email protected]
如果是 5,看 antd 是3周前修复的,可以看看尝试一下新版本

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

2 participants