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. findDOMNode was passed an instance of Transition which is inside StrictMode. Instead, add a ref directly to the element you want to reference. #153

Closed
anpct opened this issue Jun 25, 2020 · 10 comments

Comments

@anpct
Copy link

anpct commented Jun 25, 2020

Warning: findDOMNode is deprecated in StrictMode. findDOMNode was passed an instance of Transition which is inside StrictMode. Instead, add a ref directly to the element you want to reference.

@anpct anpct changed the title index.js:1 Warning: findDOMNode is deprecated in StrictMode. findDOMNode was passed an instance of Transition which is inside StrictMode. Instead, add a ref directly to the element you want to reference. Warning: findDOMNode is deprecated in StrictMode. findDOMNode was passed an instance of Transition which is inside StrictMode. Instead, add a ref directly to the element you want to reference. Jun 25, 2020
@schiehll
Copy link
Owner

Yeah, I think we have to update our react-transition-group dependency. I will do that later, or you can submit a PR if you feel like it.

@anpct
Copy link
Author

anpct commented Jun 25, 2020

I don't think that's solving the issue.

@anpct
Copy link
Author

anpct commented Jun 25, 2020

I think changes need to be done to the code to adapt to the new version of react-transition-group.
As stated here:
reactjs/react-transition-group#559 (comment)

@anpct
Copy link
Author

anpct commented Jun 25, 2020

I submitted a PR please check it.

@edw19
Copy link

edw19 commented Jul 1, 2020

I have de same error

@manishoctal
Copy link

Still the same. Any hack?

@schiehll
Copy link
Owner

schiehll commented Jul 9, 2020

It's just a warning in the dev env because of the react-transition-group. I've just fixed it by updating the dependency.

Try v7.0.2 and see if it's fixed for you. If it's not, I can reopen it.

@schiehll schiehll closed this as completed Jul 9, 2020
@manishoctal
Copy link

Yes, it is fixed now.
Thanks for the quick reply :) Happy coding.

@edw19
Copy link

edw19 commented Jul 13, 2020

where I do the changed the version a 7.0.2 ? I reinstall the pakage but not be fix the problem. Can I help me ?

@manishoctal
Copy link

@Patricio18 You should check the version in package.json, are you sure about that? Or you can do by uninstall and install again.

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

4 participants