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"]
}
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.
Source:stackexchange.com