미친 에러다.
어떻게 해야되는지 몰라서 수정하는데 한참이 걸렸다.
아래 해결책중에 뭐가 해결을 해줬는지는 모르겠지만 잘 해결이 됐다.
첫번째 방법
yarn remove @mui/~~ 를 다 한다.
다시
yarn add @mui/~~ 해준다.
두번째 방법
yarn upgrade 명령어 실행
세번째 방법
yarn cache clean 명령어 실행
node_modules 파일 삭제
yarn.lock 파일 삭제
yarn install 실시
material-ui 'createSvgIcon' is not exported from '@material-ui/core/utils'
I have installed material-ui/lab in order to user the alert component, but whenever i import it with: import Alert from '@material-ui/lab/Alert'; it fails to compile and throws this error: ./
stackoverflow.com
https://github.com/mui/material-ui/issues/21397
Module not found: Can't resolve './utils/createSvgIcon' · Issue #21397 · mui/material-ui
Definitely could just be me but it seems like there's a problem with typescript and @material-ui/icons. I'm in a next.js typescript project with two dependencies: @material-ui/care and @mat...
github.com
'프론트엔드 > Material UI' 카테고리의 다른 글
[MUI] 그리드 컬럼 헤더 높이 조정 (0) | 2022.12.05 |
---|---|
[MUI] 그리드 컬럼 헤더에 두줄 띄우는 방법 (0) | 2022.12.05 |
[MUI] DataGrid의 ScrollTo 기능 (0) | 2022.11.30 |
[MUI] 그리드 타입 지정 (0) | 2022.11.30 |
Dialog (0) | 2022.11.25 |
댓글