Description
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.
"@emotion/react": "*",
"@emotion/styled": "*",
"@fontsource/roboto": "*",
"@mui/icons-material": "*",
"@mui/material": "^6.1.4",
"@mui/x-date-pickers": "^7.21.0",
"react": "^18.2.0",
However after changing the MUI v5 to v6, I got the following error: @mui/system
is missing.
[ERROR] Could not resolve "@mui/system/RtlProvider"
[ERROR] Could not resolve "@mui/system"
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:
foo@workspace:. doesn't provide @mui/system (paa105), requested by @mui/x-date-pickers.
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