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

Issues with types after recent change in sanity/structure, resolved by changing imports.

11 replies
Last updated: Jan 31, 2024
With the recent change in sanity/structure (desk), there appear to be some issues with the types 👀 Any ideas when it be resolved?
Jan 31, 2024, 10:56 AM
I had the same warning, I just changed the imports to sanity/structure as the message says. Everything worked just fine.
Jan 31, 2024, 10:57 AM
Same here, changed everything to structure and its working as normal
Jan 31, 2024, 10:58 AM
Same but I have some warnings (see second screenshots)
Jan 31, 2024, 10:59 AM
Argument of type 'StructureBuilder' is not assignable to parameter of type 'StructureBuilder_2'
Jan 31, 2024, 10:59 AM
can you share the screenshot of /settings.ts
Jan 31, 2024, 11:00 AM
Indeed I didn’t changed the desk -> structure on the settings structure 😅
Jan 31, 2024, 11:01 AM
It’s working fine now 👍
Jan 31, 2024, 11:01 AM
Sometimes you just need to read the TS warnings haha
Jan 31, 2024, 11:01 AM
"Just read the f****** message" hahaha
Jan 31, 2024, 11:02 AM
Thanks for the quick feedback 😉
Jan 31, 2024, 11:03 AM
we’re all sinners here — glad you sorted it out 🙇‍♂️
Jan 31, 2024, 4:12 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?