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
Phil
(Phil Snow)
September 27, 2021, 2:42pm
2
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.
system
(system)
closed as resolved, flag & select 'Something Else' to reopen.
September 28, 2021, 2:43pm
4
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
racheal.orukele
(Racheal Orukele)
Split this topic
March 22, 2023, 11:52am
6