# TypeError: Cannot read properties of undefined (reading 'map')

**URL:** <https://forum.codewithmosh.com/t/typeerror-cannot-read-properties-of-undefined-reading-map/6681>\
**Category:** React\
**Created:** [August 9, 2021, 2:01pm UTC](https://forum.codewithmosh.com/t/typeerror-cannot-read-properties-of-undefined-reading-map/6681 "2021-08-09T14:01:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kofi1234](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/kofi1234/32/2101_2.png) [@kofi1234](https://forum.codewithmosh.com/u/kofi1234)\
**Post date:** [August 9, 2021, 2:01pm UTC](https://forum.codewithmosh.com/t/typeerror-cannot-read-properties-of-undefined-reading-map/6681/1 "2021-08-09T14:01:46Z")

</div>

Hi!

I got this error while doing react. I did the exact code he said, but I got this Error. Does anyone have a solution? 😕

---

<div class="post-metadata">

**Author:** ![eelsholz](https://avatars.discourse-cdn.com/v4/letter/e/439d5e/32.png) [@eelsholz](https://forum.codewithmosh.com/u/eelsholz)\
**Post date:** [August 10, 2021, 12:33am UTC](https://forum.codewithmosh.com/t/typeerror-cannot-read-properties-of-undefined-reading-map/6681/2 "2021-08-10T00:33:04Z")

</div>

It’s hard to tell without seeing your code, and maybe a screenshot of your error.
