🔮 Sanity Create is here. Writing is reinvented. Try now, no developer setup

Migration from v2 to v3 - blockContent won't Render

4 replies
Last updated: Mar 2, 2023
Hi there! Trying to migrate for the first time from v2 to v3. I've done most of the required steps I think? But my blockContent won't render. Have I done something wrong here in blockContent.jsx?
Mar 2, 2023, 7:57 PM
Hi
user U
. Can you please show the code where you’re trying to render your block content?
Mar 2, 2023, 8:31 PM
Thanks. And
post.mainText
is of the
blockContent
type?
Mar 2, 2023, 8:34 PM
Thanks
user A
! Somehow 'mainText' was changed to 'body' in the schema.. simple as that. Thanks again!
Mar 2, 2023, 8:43 PM
Great! Glad you’re up and running. 🎉
Mar 2, 2023, 8:43 PM

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?