Unlock seamless workflows and faster delivery with our latest releases - Join the deep dive

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
3.42.0
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?