Error Cannot find module 'react-dom/client' or its corresponding type declarations

I get the error below in my index.tsx file for my react-electron application

Cannot find module 'react-dom/client' or its corresponding type declarations.


message profile

A simple fix for this is to execute the command below in your terminal to add the react-dom types

yarn add -D @types/react-dom


Add Message

Click on the button below to add a new message to this thread



Thread detail

Satus: Open
Messages: 1Started: 2023-04-16
Thread Create
Click the button below to start a new thread for your question




Frontend Development |Backend Development |Full Website Development |Bootstrap Website upgrades | Website Debbugging | Website Hosting & deployment


Interested in hiring me or collaborating with me on a project, click on any of the links below to get my social media handle

Or contact me via Tel: (+234)-806-225-7480 | Email:
Privacy Policy

By using our website,
you agree that devmaesters can store cookies on your device and disclose information in accordance with our privacy policy.