Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
Tags
- 타입스크립트
- 다이나믹프로그래밍
- next.js
- 아키텍처
- 알고리즘
- 백준
- 프론트엔드
- DAILY
- 타입
- DFS
- docker-compose
- 리액트
- react
- 자바스크립트
- error
- typescript
- Docker
- BFS
- svgr
- Solid
- test
- jest
- Study
- Primitive
- Unit Test
- type
- nextjs
- javascript
- Component
- SVG
Archives
- Today
- Total
`프론트엔드 개발자` 개형이의 벽돌집
[MUI] Expression produces a union type that is too complex to represent 에러 해결 본문
React/Material-UI
[MUI] Expression produces a union type that is too complex to represent 에러 해결
개형이 2024. 1. 4. 12:19
프로젝트를 빌드하려고 했더니 계속해서 에러가 발생하는 고충을 겪는 중이다.
그 중,
"Expression produces a union type that is too complex to represent" 에러가 발생하며
vs code에서 mui의 Box에 에러를 표시했다.
그래서 "Expression produces a union type that is too complex to represent"를 서치하여
1. > typescript: Select Typescript Version 옵션에서 Use Workspace Version
2. tsdk에 node_modules/typescript/lib 명시
위 옵션을 vscode에 적용했지만, 문제는 해결되지 않았다. 씁!
문제를 해결하기 위해 Box에 component 태그를 명시하여 타입스크립트의 에러를 피할 수 있었다.
<Box component="div">
위 component props는 root node로 사용할 HTML element라고 보면 된다.
Comments