Closed DBDev90 closed 3 weeks ago
Hey there, did you check your tsconfig.json file ? sometimes you need to ensure that your tsconfig.json file is configured correctly to include MUI's module paths. You may need to add "node_modules/@mui" to the include array. let me know if that helps :)
A repo/codesandbox with the replication will be useful. We don't have any idea what build tools you are using. Maybe CRA because of react-scripts
.
I solved the problem by deleting the node_modules folder and also the yarn.lock file, then I installed the dependencies again with 'npm i'.
I appreciate the help.
Steps to reproduce
No response
Current behavior
I created my project in REACT with Typescript. I organized the folders and also the dependencies. Soon after, I added the MUI library following the steps on the website https://mui.com/material-ui/getting-started/installation/ When adding a Button using the import "@mui/material" my project presents the error Module not found: Error: Can't resolve '@mui/material'
Expected behavior
No response
Context
No response
Your environment
``` Don't forget to mention which browser you used. Output from `npx @mui/envinfo` goes here. ```npx @mui/envinfo
Search keywords: Module not found: Error: Can't resolve '@mui/material'