티스토리 뷰
Error/React.js
[React] React: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined.
IT공부블로그 2020. 5. 21. 11:19728x90
반응형
render에서 state의 이름과 class이름이 같아서 class를 제대로 로드하지못해서 발생한 문제
Ex) this.state.test 와 import test from './test';
이렇게 이름이 같아서 제대로 로드되지않아서 발생
수정후 정상 동작
728x90
반응형
'Error > React.js' 카테고리의 다른 글
[React] Objects are not valid as a React child (0) | 2020.06.01 |
---|---|
[React] Parse Error: Adjacent JSX elements must be wrapped in an enclosing tag (0) | 2020.06.01 |
[React] No Xcode or CLT version detected! (0) | 2020.04.01 |
[React] Error: EACCES: permission denied, access (1) | 2020.02.18 |
[React] Unhandled rejection Error: Command failed: /bin/git submodule update -q --init --recursive (0) | 2020.02.18 |
댓글