Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

export 'unstable_batchedUpdates' (reexported as 'unstable_batchedUpdates') was not found in 'react-dom'

I downgrades react and react-dom versions and reinstalled the latest version for both and now I get this error

enter image description here

And this is the reactBatchedUpdates.js file

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

enter image description here

>Solution :

The error message you are seeing indicates that there is an issue with the React component StrictMode being used in your code. The error suggests that the findDOMNode function is deprecated and should not be used within a *StrictMode* component.

To resolve this issue, you have a few options:

–Remove the usage of findDOMNode: If you are using findDOMNode in your code, try to refactor your code to avoid using it. Instead, use the React ref system to access DOM elements directly.

–Temporarily disable StrictMode: If you are not actively developing or debugging your application, you can temporarily remove or comment out the <StrictMode> component from your code. This will disable the strict mode checks and allow your application to run without the findDOMNode warning.

–However, it’s important to note that StrictMode is a helpful tool for catching potential issues in your code, so it’s recommended to address the warning and re-enable StrictMode once the issue is resolved.

–Check for React and React DOM compatibility: Make sure that the versions of React and React DOM you are using are compatible with each other. In some cases, using incompatible versions can lead to errors and warnings. Ensure that you are using compatible versions by referring to the documentation or release notes of React and React DOM.

Additionally, it’s worth checking if any other third-party libraries or components you are using in your application are compatible with the React version you are using. Incompatibilities between different libraries can also cause issues.

By addressing these potential issues and following the suggested solutions, you should be able to resolve the error you are experiencing.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading