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.
Admin
2023-04-16
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
Similar Content
- How to render data from a text editor in a next.js web page without template tags
- Error: React Hook "useEffect" is called conditionally. React Hooks must be called in the exact same order in every component render. react-hooks/rules-of-hooks
- How to clean text editor data on next.js
- How to destructure objects with typescript in next js.
- How to add html5 video plugin to django ckeditor
Add Message
Click on the button below to add a new message to this thread
Tags
#Javascript
Thread detail
Satus: Open
Messages: 1Started: 2023-04-16Thread Create
Click the button below to start a new thread for your question
loading..
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.