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: deprecated findDOMNode usage with React.StrictMode #20972
Comments
I can reproduce this error exactly in a clean repo. I created it with CRA (which now wraps the app in I have isolated this in a template repo, https://github.com/kiily/react-ts-pwa-ionic-capacitor, you can checkout the Additionally feel free to use this as a template to reproduce issues related to CRA apps using Ionic React and Capacitor (there were added manually instead of creating the app with the Ionic CLI). |
Related: ant-design/ant-design#22493 |
+1 Happens same thing to me |
The same error in material-ui: mui/material-ui#13394 |
The problematic line is in
It uses the |
Just acknowledging we're aware of this issue. Just hit it myself adding Ionic React to an existing React app. Technically, it's a warning as functionality is not impacted, but regardless we need to fix it to avoid the future breaking change. |
@mlynch it's been two months since your msg and seven since the issue was opened, therefore, may I ask what's the status? is there any workaround? something blocker? any hints? |
Sorry that I have missed some communications here. My workaround was to not use React in Strict mode. :( |
I see there's been for a couple of months a PR pending review which claims to fix the issue. Is anything blocking it? It's really easy to miss important things in the console when it's being spammed by the |
The PR (#21932) has been merged 🎉 |
Thanks all for your patience on this one, and thanks @GabrielMajeri for the pull request! The fix will be in the next release. |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out. |
Bug Report
Ionic version:
[x] 4.x
"@ionic/react": "^5.0.7"
Current behavior:
I am trying to install Ionic React to a fresh create-react-app but hit the error
Expected behavior:
Avoid using
findDOMNode
to refer to an element, hence not getting this error on React Strict modeSteps to reproduce:
create-react-app
<App />
component is wrapped insideReact.StrictMode
IonReactRouter
or
yarn start
The text was updated successfully, but these errors were encountered: