Nuxt Prismic Typescript

Hey!

I started a new nuxt typescript project and wanted to use typescript. I have a problem with the slicezone which needs types.

So far i found @prismicio/types and added it

"types": ["@nuxt/types", "@types/node", "@nuxt/image", "@prismicio/types"],

in tsconfig.json

Do you guys have types? Or can you maybe point me in right direction?

I get this error in the console
[Vue warn]: Invalid prop: type check failed for prop "field". Expected Array, got Undefined
It comes from the slicezone

Or any project which uses slicemachine and nuxt typescript?

Thanks

Hi Victor,

This is something the Slice Machine team plans to do, but they aren't working on it right now. If/when this changes we'll update the following thread:
https://community.prismic.io/t/slicemachine-type-generations-for-typescript-projects/4658/5

Thanks.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.