-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[core] Missing @mui/system dependency with MUI v6 #15267
Comments
Hello @caelus-dev, are you using yarn >1 with the PnP module resolution mechanism? This case is listed in their FAQ. Creating a packageExtensions:
"@mui/x-date-pickers@*":
dependencies:
"@mui/system": "*" We could list our packages in their known list to avoid this manual labor. P.S. This applies to all the packages having the |
Hi @LukasTy , thank you for your answer!
Yes, I use yarn 4.1.0 with pnp module, but I also tried the most recent yarn 4.5.1.
The yarn build no longer shows the error, but seems like the |
@caelus-dev Could you clarify what you mean by the package still missing? 🤔 |
@LukasTy Sorry, that was my mistake. The |
This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue. Note @caelus-dev How did we do? Your experience with our support team matters to us. If you have a moment, please share your thoughts in this short Support Satisfaction survey. |
…/x-*` packages Related issue: mui/mui-x#15267 All `@mui/x-*` packages depend on `@mui/material`, which directly depends on `@mui/system`. The `@mui/system` package has a singleton. Hence, it is listed as a peer dependency on the `@mui/x-*` packages. I'm proposing to add these rules to the `yarnpkg` extensions, because Yarn PnP fails to resolve this transitive dependency and
I have created a PR on the yarn extensions side to possibly avoid the need for explicit declaration. |
Steps to reproduce
Hello!
I tried to upgrade from MUI v5 to v6. So as the official document stated, I just changed the
@mui/material
to the newest version and left everything else unchanged.However after changing the MUI v5 to v6, I got the following error:
@mui/system
is missing.As @flaviendelangle suggested in another conversation, I checked if the
@mui/system
is installed with yarn info, and turned out@mui/system
is totally missing. The yarn build also confirms the problem:I tried
yarn explain peer-requirements
command, but it says:command doesn't support this warning type yet
I also tried to clean the yarn cache, delete folders, use other pc but nothing solved the problem.
Current behavior
@mui/system
is not installed by"@mui/material": "^6.1.4"
Expected behavior
@mui/system
should be installed by"@mui/material": "^6.1.4"
Context
No response
Your environment
No response
Search keywords: dependency @mui/system
The text was updated successfully, but these errors were encountered: