I just started creating a new react project, so I installed all necessary libs as mui, react-dom, …. I used all instruction found on the mui page.
After starting blank project without any filled pages I got errors that MUI modules have no exports (as you can see in the screenshot).
Errors
I used all commands for installation from mui core web doc.:
npm install @mui/material @emotion/react @emotion/styled
npm install @fontsource/roboto
npm install @mui/icons-material
npm install react-router react-router-dom
Did I miss something?
2
Answers
Ensure correct dependency versions and import statements. Delete node_modules and package-lock.json, then run npm install again. Check MUI documentation for accurate import syntax.
It seems like a package issues. Try the steps below.
npm install
, then start again