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

Hey @maxvdschee ,

I discussed this with Lucie and she explained to me what's going on. So because we removed the apiOptions for the route resolver the project then falls back on the default nuxt.js route generator, which creates the routes by crawling links.

So because the documents above aren't linked anywhere in your project their routes aren't generated by Nuxt.js.

This was something that was overcome previously by our route resolver as it does a query server-side for all Prismic documents and creates the routes based on this. The issue here obviously being that this broke for you because of the hyphen in the parent folder.

So we have 2 options here:

  1. You can wait until sometime next week for the team to fix the hyphen '-' issue in the route resolver so you can use this.
  2. You could write a custom function in your nuxt.config which queries all the docs in your Prismic repo and generates your routes based on this: The generate Property - NuxtJS

One of these is obviously easier haha

Let me know what you think.

Thanks.