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

findDOMNode is deprecated and will be removed in the next major release. #48742

Closed
mmejaz opened this issue May 2, 2024 · 1 comment
Closed

Comments

@mmejaz
Copy link

mmejaz commented May 2, 2024

Reproduction link

http://localhost:5174/

Steps to reproduce

clear react project using vite compiler, and simply install and desing and use any prebuild layout, while you will suplly any object to menu then this error message is showing.

What is expected?

there must not show any error message or warning.

What is actually happening?

Warning: findDOMNode is deprecated and will be removed in the next major release. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here:

Environment Info
antd 5.16.5
React React 18.*
System Windos
Browser chrome, opera, firefox

chunk-IURPBYAF.js?v=d4f1bff4:519 Warning: findDOMNode is deprecated and will be removed in the next major release. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node
at SingleObserver (http://localhost:5174/node_modules/.vite/deps/antd.js?v=d4f1bff4:1652:24)
at ResizeObserver3 (http://localhost:5174/node_modules/.vite/deps/antd.js?v=d4f1bff4:1729:24)
at http://localhost:5174/node_modules/.vite/deps/antd.js?v=d4f1bff4:20024:34
at Tooltip2 (http://localhost:5174/node_modules/.vite/deps/antd.js?v=d4f1bff4:25179:32)
at http://localhost:5174/node_modules/.vite/deps/antd.js?v=d4f1bff4:25821:16
at MenuItem2 (http://localhost:5174/node_modules/.vite/deps/antd.js?v=d4f1bff4:29275:5)
at div
at InheritableContextProvider (http://localhost:5174/node_modules/.vite/deps/antd.js?v=d4f1bff4:27610:23)
at http://localhost:5174/node_modules/.vite/deps/antd.js?v=d4f1bff4:28750:43
at http://localhost:5174/node_modules/.vite/deps/antd.js?v=d4f1bff4:30518:29
at http://localhost:5174/node_modules/.vite/deps/antd.js?v=d4f1bff4:30633:45
at div
at aside
at http://localhost:5174/node_modules/.vite/deps/antd.js?v=d4f1bff4:29082:16
at div
at http://localhost:5174/node_modules/.vite/deps/antd.js?v=d4f1bff4:60718:16
at Layout
at App (http://localhost:5174/src/App.jsx?t=1714642597271:30:37)
Show 19 more frames

@afc163
Copy link
Member

afc163 commented May 2, 2024

Duplicate of #48709

@afc163 afc163 marked this as a duplicate of #48709 May 2, 2024
@afc163 afc163 closed this as completed May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants