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’
- [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
- 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.