material-ui: Installation bug Cannot find peer dependency @mui/zero-runtime
Steps to reproduce
Link to live example: (required)
Steps:
- I followed the installation guide and run
npm install @mui/material @emotion/react @emotion/styled - Then, I got this error
Current behavior
Expected behavior
Successful installation of @mui/material
Context
No response
Your environment
npx @mui/envinfo
Don't forget to mention which browser you used.
Output from `npx @mui/envinfo` goes here.
Search keywords: installation bug
About this issue
- Original URL
- State: closed
- Created 5 months ago
- Reactions: 14
- Comments: 17 (4 by maintainers)
Commits related to this issue
- [material] Make zero-runtime optional peer dep Closes #40969 — committed to brijeshb42/material-ui by brijeshb42 5 months ago
- Pin @mui/material See https://github.com/mui/material-ui/issues/40969#issuecomment-1931258873 — committed to tnguyen14/ledge by tnguyen14 5 months ago
Any updates on this one? (just kidding)
I changed the latest tag to point to the previous version, Material UI v5.15.8 is corrupted.
https://www.npmjs.com/package/@mui/material?activeTab=versions
Root problem seems to https://github.com/mui/material-ui/pull/40854#discussion_r1471049262
I’m reopening per https://github.com/mui/material-ui/pull/40971#issuecomment-1933839859, problem isn’t solved yet. Since this breaks new installations, issues should be closed once released.
For regular issues, its fine to close even before release.
Interim workaround is to go a patch release down -
npm i @mui/material@5.15.7