codestates / codestates/NERDchat

[Error Handling] TypeError: Cannot read properties of undefined

Open
#209 0 comments 0 reactions 0 assignees View on GitHub
Client Error
Dominant language
No language data
Stars
0
Forks
1
PR merge metrics
No merged PRs in 30d

Description

## 어떤 에러인가요?

* TypeError: Cannot read properties of undefined (reading 'image')
```

```

## 에러 핸들링 방법

API 통신은 비동기 처리를 하기 때문에 렌더링되기 전에 들어오는 값이 없어 오류가 나는 것이다. 이럴 때는 이미지가 뜨기 전까지 렌더링 되는 것을 막아 주어야 한다.

```

```

## 에러 핸들링을 위해 참고한 레퍼런스 링크

[Link](https://stackoverflow.com/questions/45422908/cannot-read-property-title-of-undefined-but-title-is-displayed)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.