Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation bug Cannot find peer dependency @mui/zero-runtime #40969

Closed
Aya-Alabrash opened this issue Feb 6, 2024 · 17 comments · Fixed by #40971 or #41004
Closed

Installation bug Cannot find peer dependency @mui/zero-runtime #40969

Aya-Alabrash opened this issue Feb 6, 2024 · 17 comments · Fixed by #40971 or #41004
Assignees
Labels
bug 🐛 Something doesn't work package: material-ui Specific to @mui/material regression A bug, but worse

Comments

@Aya-Alabrash
Copy link

Aya-Alabrash commented Feb 6, 2024

Steps to reproduce

Link to live example: (required)

Steps:

  1. I followed the installation guide and run npm install @mui/material @emotion/react @emotion/styled
  2. Then, I got this error
image

Current behavior

image

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

@Aya-Alabrash Aya-Alabrash added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Feb 6, 2024
@jj2020driver

This comment was marked as resolved.

@Brauunson

This comment was marked as resolved.

@sargent88

This comment was marked as resolved.

@ElRojo

This comment was marked as resolved.

@saranshjain1

This comment was marked as resolved.

@MChan818

This comment was marked as resolved.

@gurpreets1ngh

This comment was marked as resolved.

@magnusriga

This comment was marked as resolved.

@ivan-junior

This comment was marked as resolved.

@magnusriga
Copy link

magnusriga commented Feb 6, 2024

I think the problem is here:

'@mui/zero-runtime':

zero-downtime is listed as a direct dependency of @mui/material in the monorepo's lockfile. The lockfile needs to be updated by someone with privileges to run pnpm install and push new lockfile to repo.

The update was done by @brijeshb42 13 hours ago.

@elyobo
Copy link

elyobo commented Feb 6, 2024

Interim workaround is to go a patch release down - npm i @mui/material@5.15.7

@oliviertassinari
Copy link
Member

oliviertassinari commented Feb 6, 2024

I changed the latest tag to point to the previous version, Material UI v5.15.8 is corrupted.

npm dist-tag add @mui/material@5.15.7 latest

https://www.npmjs.com/package/@mui/material?activeTab=versions

Root problem seems to #40854 (comment)

@tnguyen14
Copy link

@oliviertassinari do you know how esm.sh resolves major semver?

If I go to https://esm.sh/@mui/material, it resolves correctly to https://esm.sh/@mui/material@5.15.7, but if I go to https://esm.sh/@mui/material@5, it resolves to https://esm.sh/@mui/material@5.15.8

@lorand-horvath
Copy link

lorand-horvath commented Feb 8, 2024

@oliviertassinari If one installs @mui/material@5.15.7, it will still install the newer 5.15.8 dependencies ... which is a bit of a mess.

        "@mui/core-downloads-tracker": "^5.15.7",
        "@mui/system": "^5.15.7",
        "@mui/utils": "^5.15.7",

Is there a workaround until this gets properly fixed?

@oliviertassinari
Copy link
Member

oliviertassinari commented Feb 8, 2024

I'm reopening per #40971 (comment), 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.

@oliviertassinari oliviertassinari added bug 🐛 Something doesn't work package: material-ui Specific to @mui/material labels Feb 8, 2024
@brijeshb42 brijeshb42 mentioned this issue Feb 8, 2024
1 task
@brijeshb42
Copy link
Contributor

Published v5.15.9 with the fix.

@oliviertassinari
Copy link
Member

@brijeshb42 Awesome, thanks for the fix 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work package: material-ui Specific to @mui/material regression A bug, but worse
Projects
None yet