Prismic Client 7 and Content Relationship

Hello @jeanbaptiste.cazaux @ali

I discussed this with the team and received an update. An updated version of prismic-ts-codegen has been released, which should fix the issue. RelationField should now be generated as ContentRelationshipField.You can update to the latest version using the following command:

npm update prismic-ts-codegen

You will then need to regenerate their types. Using Slice Machine with @slicemachine/adapter-next, you can regenerate types by editing a Slice. We don't have a streamlined way of regenerating types on-demand, so you will need to add a field to a Slice, save it, remove the field, then save it again.

I hope it works, and let me know if you have any further questions.

Thanks,
Priyanka

1 Like