close

[Solved] Cannot find module ‘react-dom/client’ from ‘node_modules/@testing-library/react/dist/pure.js’

I am facing the following error Cannot find module ‘react-dom/client’ from ‘node_modules/@testing-library/react/dist/pure.js’ in ReactJS. We are going to Learn about All Possible Solutions So Lets Get Start with This Article.

How Cannot find module ‘react-dom/client’ from ‘node_modules/@testing-library/react/dist/pure.js’ Error Occurs?

I am facing the following error.

Cannot find module 'react-dom/client' from 'node_modules/@testing-library/react/dist/pure.js'

So here I am writing all the possible solutions that I have tried to resolve this error.

How To Solve Cannot find module ‘react-dom/client’ from ‘node_modules/@testing-library/react/dist/pure.js’ Error?

  1. How To Solve Cannot find module ‘react-dom/client’ from ‘node_modules/@testing-library/react/dist/pure.js’ Error?

    To Solve Cannot find module ‘react-dom/client’ from ‘node_modules/@testing-library/react/dist/pure.js’ Error Here testing-library is using the latest version that’s why you are facing the above error so you have to downgrade testing-library from 13.0.0 to 12.0.4 and then your error must be solved.

  2. Cannot find module ‘react-dom/client’ from ‘node_modules/@testing-library/react/dist/pure.js’

    To Solve Cannot find module ‘react-dom/client’ from ‘node_modules/@testing-library/react/dist/pure.js’ Error Here testing-library is using the latest version that’s why you are facing the above error so you have to downgrade testing-library from 13.0.0 to 12.0.4 and then your error must be solved.

Solution 1: Downgrade testing-library

Here testing-library is using the latest version that’s why you are facing the above error so you have to downgrade testing-library from 13.0.0 to 12.0.4 and then your error must be solved.

Summary

It’s all About this error. Hope We solved Your error. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you?

Also, Read

Leave a Comment