๐Ÿ”ฎ Sanity Create is here. Writing is reinvented. Try now, no developer setup

Type error with defineField for image type resolved by updating TypeScript

4 replies
Last updated: May 22, 2024
Good evening everyone, I am getting this type error while using defineField for image type which says field type does not exist. This is an error I was not getting previously and the documentation also states that fields is supported. Can someone help?
May 21, 2024, 3:19 PM
May 21, 2024, 3:26 PM
๐Ÿ‘‹ What version of the Studio are you running?
May 21, 2024, 4:11 PM
May 22, 2024, 5:54 AM
Seems this was an issue with my typescript version, changing it to 5 fixed these issues
May 22, 2024, 7:50 AM

Sanityโ€“ build remarkable experiences at scale

Sanity is a modern headless CMS that treats content as data to power your digital business. Free to get started, and pay-as-you-go on all plans.

Was this answer helpful?