./node_modules/@material-ui/core/GlobalStyles/GlobalStyles.js Attempted import error: 'GlobalStyles' is not exported from '@material-ui/system' (imported as 'SystemGlobalStyles').
I'm facing this problem and I can't understand in which file it's occuring.
I found the solution to this question.
Delete @material-ui folder from node_modules.
Run npm i @mui/material in the terminal.
Check for the correct spellings in the import statement. It should be from "@material-ui/core";
This worked for me! :)