Please i'm getting this error from @mui/material library, I have checked the package.json of the mui/system and it has alpha exported in it.
./node_modules/@mui/material/styles/index.js
Attempted import error: 'alpha' is not exported from '@mui/system'.
Here's the package.json of the application
"dependencies": {
"@date-io/date-fns": "1.x",
"@emotion/react": "11.7.0",
"@emotion/styled": "11.6.0",
"@material-ui/core": "4.12.3",
"@material-ui/icons": "4.11.2",
"@mui/icons-material": "5.2.0",
"@mui/material": "^5.2.7",
"@mui/styled-engine-sc": "5.1.0",
"@mui/styles": "5.2.2",
"@mui/system": "^5.2.6",
"@reduxjs/toolkit": "1.6.2",
"@testing-library/jest-dom": "5.11.4",
"@testing-library/react": "11.1.0",
"@testing-library/user-event": "12.1.10",
"date-fns": "2.27.0",
"express": "4.17.1",
"react": "17.0.2",
"react-bootstrap": "2.0.2",
"react-bootstrap-icons": "1.6.1",
"react-circular-gradient-progress": "1.1.1",
"react-circular-progressbar": "2.0.4",
"react-dom": "17.0.2",
"react-icons": "4.3.1",
"react-organizational-chart": "2.1.0",
"react-redux": "7.2.6",
"react-router-dom": "5.2.0",
"react-scripts": "4.0.3",
"react-spring": "9.3.1",
"styled-components": "5.3.3",
"web-vitals": "1.0.1"
},
My node version is v12.22.8
I think the problem is that you have mixed Material UI version 4 and 5 libraries and they are incompatible with each other. Try replacing @material-ui/core with @mui/core and just remove @material-ui/icons import as you already have @mui/icons-material and use the latest versions of all @mui/* imports.
Clear node_modules before installing dependencies again, to make sure everything is in order and old dependency versions are removed.
EDIT: what turned out to be necessary to solve it in the end - install node v12.22.7, remove node_modules, clean yarn cache and reinstall dependencies