# Generate: \[error\] Cannot read property 'data' of undefined

**URL:** <https://community.prismic.io/t/generate-error-cannot-read-property-data-of-undefined/2385>\
**Category:** Developing with Prismic\
**Tags:** nuxtjs\
**Created:** [October 22, 2020, 12:50pm UTC](https://community.prismic.io/t/generate-error-cannot-read-property-data-of-undefined/2385 "2020-10-22T12:50:24Z")\
**Posts on this page:** 1\
**Showing post:** 37

<div class="post-metadata">

**Author:** ![Phil](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/phil/32/14_2.png) [@Phil](https://community.prismic.io/u/Phil)\
**Post date:** [May 20, 2021, 9:36am UTC](https://community.prismic.io/t/generate-error-cannot-read-property-data-of-undefined/2385/37 "2021-05-20T09:36:17Z")

</div>

Hey Max,

The fix has been created and tested, so we're just waiting to get it merged. I'm following up with the team about when this can happen.

In the meantime a user has suggested a workaround here:

> [@Nuxt route resolve](https://community.prismic.io/t/nuxt-route-resolve/5314/8):
>
> If you plan to have the 'about-type' as a UID you can overcome the hyphen issue on 'about-me' by creating a relationship back to the parent 'about-me' document and using a resolver. For example, your uid page 'about type' has a relationship field 'link\_to\_about' that you link to 'about-me' in Prismic. Then you can use the resolver like so: { type: "about-type", path: "/:about/:uid", resolvers: { about: "link\_to\_about" } }

Let me know if this works for you and I'll update you shortly with the plans to merge the fix.

Thanks.

---

_[View the full topic](https://community.prismic.io/t/generate-error-cannot-read-property-data-of-undefined/2385)._
