EN
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'
1
answers
3
points
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
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