'Uncaught Error: Cannot find module 'react-dom/client'
I just create my application from npm command, when i run the start script the application throws me that error.
Solution 1:[1]
I think it's because your @testing-library/react using the newer version, just test with version of 12.1.2
Solution 2:[2]
Please provide more context. If you're using typescript on your react project. You need to upgrade both react and react-dom declaration. npm install @types/react@latest
and npm install @types/react-dom@latest
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | banbz |
Solution 2 | Jason |