hupe1980 / gatsby-plugin-material-ui

Gatsby plugin for Material-UI with built-in server-side rendering support
MIT License
136 stars 25 forks source link

this plugin will break when upgrading to Material UI v5 rc due to renamed package to `@mui/*` #75

Closed kimbaudi closed 2 years ago

kimbaudi commented 3 years ago

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:

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

hupe1980 commented 2 years ago

Have you tried the next branch?

kimbaudi commented 2 years ago

I just tried the next branch (v4.0.2) and I no longer get the error :tada:

closing this