Can't resolve '@material-ui/styles' in '<path_to>\node_modules\gatsby-plugin-material-ui'
If you're trying to use a package make sure that '@material-ui/styles' is installed. If you're trying to use a local file make sure that the path is correct.
File: node_modules\gatsby-plugin-material-ui\gatsby-browser.js:1:245
If/when upgrading to Material UI v5, you will need to change import from @material-ui/styles to @mui/material/styles
Material-UI renamed packages to
@mui/*
(see https://github.com/mui-org/material-ui/releases/tag/v5.0.0-rc.0) so migrating from mui v4 to v5 will break compatibility and cause error:If/when upgrading to Material UI v5, you will need to change import from
@material-ui/styles
to@mui/material/styles