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

We Are Going To Discuss About Cannot find module ‘react-dom/client’ from ‘node_modules/@testing-library/react/dist/pure.js’. So lets Start this ReactJS Article.

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

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

    I think it's because your @testing-library/react using the newer version, just test with version of 12.1.2

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

    I think it's because your @testing-library/react using the newer version, just test with version of 12.1.2

Solution 1

I think it’s because your @testing-library/react using the newer version, just test with version of 12.1.2

Original Author quippv Of This Content

Solution 2

I can confirm that downgrading the lib from 13.0.0 to 12.0.4 did the trick with react 17.0.2.

Original Author Ioannis Noukakis Of This Content

Conclusion

So This is all About This Tutorial. Hope This Tutorial Helped You. Thank You.

Also Read,

Siddharth

I am an Information Technology Engineer. I have Completed my MCA And I have 4 Year Plus Experience, I am a web developer with knowledge of multiple back-end platforms Like PHP, Node.js, Python and frontend JavaScript frameworks Like Angular, React, and Vue.

Leave a Comment