codestates / codestates/Memory-It
[Error Handling] React에서 렌더링이 안되요
Open
client
Error!
- Dominant language
- JavaScript
- Stars
- 1
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Description
### 어떤 에러인가요?
+ 분명 import를 제대로 한 것 같은데 리액트에서 렌더링이 안됩니다.
### 에러 메시지
```
Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object.
You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.
```
### 에러 핸들링 방법
저 에러문구를 살펴보면 핵심은 이름을 잘 살펴보라는 뜻이다.
오탈자를 중심으로 찾은 다음에 오탈자가 없다면, 각각의 컴포넌트 별로 export가 제대로 되어있는지 확인한다.
본인은 export 과정에서 파일 이름을 수정하지 않아서 발생한 오류였다.
```
### 에러 핸들링을 위해 참고한 레퍼런스 링크
[레퍼런스 링크](https://191125.tistory.com/45)
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.