[Vuejs]-'Property does not exist' errors in terminal but not Chrome console โ€“ Nuxt/Prismic

0๐Ÿ‘

This problem seems to be with the way, prismic.d.ts is included in tsconfig.json. Can you try to use include option instead of files in tsconfig.json, and use the absolute path of prismic.d.ts there?
Like:

{
  "include": ["types/prismic.d.ts"]
}

Reference: https://www.typescriptlang.org/tsconfig#include

0๐Ÿ‘

Iโ€™m seeing this in your code:

that.heading =document.data.doc_name[0].text
that.sections = document.data.nav

Itโ€™s meant to be:

this.heading =document.data.doc_name[0].text
this.sections = document.data.nav

That way you can access it from the reactive data.

Leave a comment