I’m trying to minimize my bundle size, specifically the “@mui/material” package. I’m using the guide they have: https://mui.com/material-ui/guides/minimizing-bundle-size/.
However, after doing all the steps in my CRACO app I get the following error when running npm start
:
Failed to compile.
Module not found: Error: Can’t resolve ‘@mui/material/ThemeProvider’ in ‘/src/Component’
I reproduced the error here https://codesandbox.io/p/devbox/282r7g (You may need to go to the “Development” tab in order to see it).
Does anybody know why this might be happening?