Upgrade to Sanity 3.16.0 causes errors due to missing `.apiVersion()`

10 replies
Last updated: Aug 30, 2023
So I just upgraded
sanity
from 3.15.1 to 3.16.0 along with
<@UFY5PJF3M>/vision
from 3.15.1 to 3.16.0. However, I am not getting errors in my studio for things that used to work on
3.15.1
. I will put the desk structure entries for these in the thread.
Aug 30, 2023, 12:06 AM
So the first error is coming from this
Aug 30, 2023, 12:07 AM
And the second error is coming from this
Aug 30, 2023, 12:07 AM
Ah I guess it's because of https://www.sanity.io/help/structure-api-version-required-for-custom-filter that was updated/published yesterday... You now need to specify an
.apiVersion()
Aug 30, 2023, 12:15 AM
That's a little annoying...
Aug 30, 2023, 12:16 AM
Sorry to hear that :( Did adding
apiVersion()
fix the issue for you?
Aug 30, 2023, 10:52 AM
Yea adding
.apiVersion()
helped but I wouldn't of known that unless I looked at the browser console
Aug 30, 2023, 3:21 PM
Thanks so much for confirming đź‘Ť
Aug 30, 2023, 4:37 PM
No problem! I didn’t see anything that stuck out to me in the release notes that it was required now either, thankfully the console warning had a link
Aug 30, 2023, 4:38 PM
We have raised this with the product team as well and we'll let you know if they decide to make any updates here. Thank you 🙇‍♂️
Aug 30, 2023, 4:42 PM
Should be fixed in v3.16.1 – thanks for reporting!
Aug 30, 2023, 5:31 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?