Skip to content

[core] Missing @mui/system dependency with MUI v6 #15267

Closed
@caelus-dev

Description

@caelus-dev

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    coreCovers general upkeep, such as minor refactoring, typo fixes, or structural changes.scope: chartsChanges or issues related to the charts productscope: data gridChanges or issues related to the data grid productscope: pickersChanges or issues related to the pickers productscope: tree viewChanges or issues related to the tree view producttype: bugA bug or unintended behavior in the components.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions