gatsby-plugin-material-ui
gatsby-plugin-material-ui copied to clipboard
Update to work with Gatsby 5
Currently installing this plugin without using --legacy-peer-deps
fails when using gatsby@>=5.0.0
.
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/gatsby
npm ERR! gatsby@"^5.1.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer gatsby@"^3.0.0 || ^4.0.0" from [email protected]
npm ERR! node_modules/gatsby-theme-material-ui
npm ERR! gatsby-theme-material-ui@"*" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR!
npm ERR! For a full report see:
npm ERR! /Users/christopher/.npm/_logs/2022-11-22T19_48_06_169Z-eresolve-report.txt
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/christopher/.npm/_logs/2022-11-22T19_48_06_169Z-debug-0.log
I am not familiar enough with the plugin or gatsby to say if code needs to be updated or only the peer dependency definition...
We are getting this warning when trying to install gatsby-plugin-material-ui
with gatsby 5.0.0
Plugin gatsby-plugin-material-ui is not compatible with your gatsby version 5.0.0 - It requires gatsby@^3.0.0 || ^4.0.0
For now, the latest version of gatsby-plugin-material-ui seems to work with gatsby v5 for most components.
seems like there is a PR implementing the changes already #111 by @blackspherefollower @hupe1980 can we get that in so we can update to latest Gatsby versions in our apps?
warn Plugin gatsby-theme-material-ui-top-layout is not compatible with your gatsby version 5.3.3 - It requires gatsby@^3.0.0 || ^4.0.0
warn Plugin gatsby-plugin-material-ui is not compatible with your gatsby version 5.3.3 - It requires gatsby@^3.0.0 || ^4.0.0
warn Plugin gatsby-theme-material-ui is not compatible with your gatsby version 5.3.3 - It requires gatsby@^3.0.0 || ^4.0.0
warn Plugin gatsby-theme-material-ui-top-layout is not compatible with your gatsby version 5.3.3 - It requires gatsby@^3.0.0 || ^4.0.0
warn Plugin gatsby-plugin-material-ui is not compatible with your gatsby version 5.3.3 - It requires gatsby@^3.0.0 || ^4.0.0
warn Plugin gatsby-theme-material-ui is not compatible with your gatsby version 5.3.3 - It requires gatsby@^3.0.0 || ^4.0.0
Is there any update on when we could be expecting this plugin to work with Gatsby 5? Like kdichev was asking 3 weeks ago, there seems to be a fix in place.
FYI, I published my fork (just the Gatsby 5 change in the PR) as https://www.npmjs.com/package/@iostindex/gatsby-plugin-material-ui as a temporary solution
Also ran into this issue today starting a new project. Any update on when it will work with Gatsby 5?
I also want to start a new project, any updates?
would be nice to get a status update on this.
@hupe1980 Any chance to get some maintainers on board for this? I would offer to engage.
@hupe1980 Any chance to get some maintainers on board for this? I would offer to engage.
he is MIA I've tried contacting him on multiple platforms to either give access to other maintainers or give the repo to somebody else
FWIW: I'll keep my fork up-to-date for as long as I'm using it
MUI updated the example and it is possible to use Gatsby 5 and MUI without this plugin: https://github.com/mui/material-ui/tree/master/examples/material-ui-gatsby