Languages

React / Material UI - Module not found: Can't resolve 'react/jsx-runtime' in 'C:\Users\qurek\Desktop\tmp\simple-reactjs-app\node_modules\@mui\base\BadgeUnstyled'

3 points
Asked by:
May87
827

I have decided to add Material UI to my old React project (I use pure JavaScript).

When I try to run application the error appears:

Module not found: Can't resolve 'react/jsx-runtime' in 'C:\Users\pele\Projects\simple-reactjs-app\node_modules\@mui\base\BadgeUnstyled'

To run the application I use:

npm run start

Any idea how solve the problem?

1 answer
5 points
Answered by:
May87
827

It looks like you need to upgrade your React packages.

NPM:

npm install react@latest react-dom@latest

Yarn:

yarn add react@latest react-dom@latest
0 comments Add comment
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.
Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join