# TypeError: undefined is not an object (evaluating 'route.key')

**URL:** <https://forum.codewithmosh.com/t/typeerror-undefined-is-not-an-object-evaluating-route-key/6746>\
**Category:** React Native\
**Created:** [August 12, 2021, 2:39am UTC](https://forum.codewithmosh.com/t/typeerror-undefined-is-not-an-object-evaluating-route-key/6746 "2021-08-12T02:39:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![durgatsby](https://avatars.discourse-cdn.com/v4/letter/d/6a8cbe/32.png) [@durgatsby](https://forum.codewithmosh.com/u/durgatsby)\
**Post date:** [August 12, 2021, 2:39am UTC](https://forum.codewithmosh.com/t/typeerror-undefined-is-not-an-object-evaluating-route-key/6746/1 "2021-08-12T02:39:28Z")

</div>

Hey Mosh I am following your react native part 2 tutorial and I am at the navigation part but when I try to print out the tweet screen I get this error.

---

<div class="post-metadata">

**Author:** ![dpickut](https://avatars.discourse-cdn.com/v4/letter/d/a87d85/32.png) [@dpickut](https://forum.codewithmosh.com/u/dpickut)\
**Post date:** [August 14, 2021, 12:20pm UTC](https://forum.codewithmosh.com/t/typeerror-undefined-is-not-an-object-evaluating-route-key/6746/2 "2021-08-14T12:20:34Z")

</div>

Can you supply more details? What specific lesson are you in, and can you supply a screenshot or something that provides more information?

If you do so, someone on the forum may be able to assist. (I’m just another student – Mosh doesn’t seem to participate in this forum.)

---

<div class="post-metadata">

**Author:** ![kurukuru](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/kurukuru/32/2824_2.png) [@kurukuru](https://forum.codewithmosh.com/u/kurukuru)\
**Post date:** [January 2, 2022, 7:44am UTC](https://forum.codewithmosh.com/t/typeerror-undefined-is-not-an-object-evaluating-route-key/6746/3 "2022-01-02T07:44:15Z")

</div>

Make sure the following libraries are the same version:

> @react-navigation/native  
> @react-navigation/stack
