You need to upgrade @mui/material to version ^7.0 . Just run npm i @mui/material@latest and follow the migration guide from https://mui.com/material-ui/migration/upgrade-to-v7/
@mui/material
^7.0
npm i @mui/material@latest