Nuxt Prismic Typescript


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?


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:


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

A post was split to a new topic: Invalid prop Error Nuxt Prismic JavaScript