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

./src/index.js Module not found: Can't resolve 'react-dom/client' in "c:\users\….."

Above is the code of the index.js file, below is the error shown in this file

I have tried solving this error in many ways, I have also updated the React and React DOM to version
"react": "^18.0.0-rc.0",
"react-dom": "^18.0.0-rc.0". I also tried deleting the node modules and re-installing node modules. Waiting for solutions. Also not able to understand these Chokidar errors.

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

>Solution :

Try installing both react and react dom to latest stable v18 builds

npm i react@latest react-dom@latest

Additionally there’s an error in your console about files being locked. Did you update the dependencies while the client was still running?

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