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

Warning: findDOMNode is deprecated in StrictMode #260

Open
Kaffu093 opened this issue Nov 27, 2023 · 0 comments
Open

Warning: findDOMNode is deprecated in StrictMode #260

Kaffu093 opened this issue Nov 27, 2023 · 0 comments

Comments

@Kaffu093
Copy link

Hi, I don't know if is it just me but when I use this library, the console throws me this error:

react-dom.development.js:86  Warning: findDOMNode is deprecated in StrictMode. findDOMNode was passed an instance of AvatarText2 which is inside StrictMode. 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 div
    at AvatarWrapper2 (http://192.168.0.93:5173/node_modules/.vite/deps/react-avatar.js?v=7927ac3d:4111:5)
    at AvatarText2 (http://192.168.0.93:5173/node_modules/.vite/deps/react-avatar.js?v=7927ac3d:4272:5)
    at AvatarDataProvider2 (http://192.168.0.93:5173/node_modules/.vite/deps/react-avatar.js?v=7927ac3d:3934:7)
    at withAvatarConfig
    at withAvatarConfig
    at OverlayTrigger (http://192.168.0.93:5173/node_modules/.vite/deps/react-bootstrap.js?v=7927ac3d:8194:3)
    at div
    at div
    at http://192.168.0.93:5173/node_modules/.vite/deps/react-bootstrap.js?v=7927ac3d:3636:10
    at div
    at http://192.168.0.93:5173/node_modules/.vite/deps/react-bootstrap.js?v=7927ac3d:8575:3
    at div
    at http://192.168.0.93:5173/node_modules/.vite/deps/react-bootstrap.js?v=7927ac3d:3652:3
    at MyProfile (http://192.168.0.93:5173/src/pages/Profile/MyProfile.jsx?t=1701121055525:41:29)
    at RenderedRoute (http://192.168.0.93:5173/node_modules/.vite/deps/react-router-dom.js?v=7927ac3d:3310:5)
    at Routes (http://192.168.0.93:5173/node_modules/.vite/deps/react-router-dom.js?v=7927ac3d:3763:5)
    at RoutesWithNotFound (http://192.168.0.93:5173/src/routes/RoutesWithNotFound.jsx:19:3)
    at div
    at div
    at div
    at div
    at LayoutGeneral (http://192.168.0.93:5173/src/components/layout/GeneralLayout/LayoutGeneral.jsx?t=1701099482814:25:3)
    at RoutesHome
    at RenderedRoute (http://192.168.0.93:5173/node_modules/.vite/deps/react-router-dom.js?v=7927ac3d:3310:5)
    at Outlet (http://192.168.0.93:5173/node_modules/.vite/deps/react-router-dom.js?v=7927ac3d:3703:26)
    at ProtectedRoute (http://192.168.0.93:5173/src/ProtectedRoute.jsx:23:16)
    at RenderedRoute (http://192.168.0.93:5173/node_modules/.vite/deps/react-router-dom.js?v=7927ac3d:3310:5)
    at Routes (http://192.168.0.93:5173/node_modules/.vite/deps/react-router-dom.js?v=7927ac3d:3763:5)
    at RoutesWithNotFound (http://192.168.0.93:5173/src/routes/RoutesWithNotFound.jsx:19:3)
    at App (http://192.168.0.93:5173/src/App.jsx?t=1701099482814:41:3)
    at Router (http://192.168.0.93:5173/node_modules/.vite/deps/react-router-dom.js?v=7927ac3d:3710:15)
    at BrowserRouter (http://192.168.0.93:5173/node_modules/.vite/deps/react-router-dom.js?v=7927ac3d:4190:5)
    at Toaster (http://192.168.0.93:5173/src/Toaster.jsx:21:3)
    at Provider (http://192.168.0.93:5173/node_modules/.vite/deps/chunk-B4ETL6RL.js?v=7927ac3d:1229:3)

Should I worry? I'm just posting this if this is an error of the library and not just me, thanks!

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

1 participant