개발 일지
홈
태그
방명록
error일지
Typescript: Component cannot be used as a JSX component. Its return type 'Element[]' is not a valid JSX element
rachel_13
2023. 6. 1. 23:58
next 버전이랑 typescript 버전이 안맞아서 발생하는 문제
build 파일, node_modules, .d.ts 타입 정의 파일 삭제하기,
npm 캐시 삭제하기. (npm cache clean 명령어 사용)
그리고 다시 재설치하였더니 해당 오류는 없어졌다..
공유하기
게시글 관리
개발 일지
'
error일지
' 카테고리의 다른 글
[Next] Warning: Prop `style` did not match. Server: "null" Client: "color:"
(0)
2023.05.05
redux.js:426 Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.
(0)
2022.10.29
react caching issue
(0)
2022.10.28
[React]Uncaught SyntaxError: expected expression, got '<'
(0)
2022.10.26
[Redux-toolkit](ft. react+ts) serializableStateInvariantMiddleware.ts:194 A non-serializable value was detected in an action,
(0)
2022.10.25
티스토리툴바