🎤 Builder Talk: The Story Behind Lady Gaga’s Digital Experience – Register now

Resolving query recognition issues in Sanity project setup

3 replies
Last updated: Jan 13, 2025
I've also now tried moving the query into the sanity folder itself (
src/sanity/queries.ts
) and it's still not recognizing it
Jan 13, 2025, 10:45 AM
Do you mind to try moving the queries to the
/src
directory? I think we have a couple of default paths we search for. Let me see if I can find the code.
Jan 13, 2025, 3:09 PM
Yap that did itI've made a
sanity-typegen.json
to point it to the correct location of my files
Thanks for the the tip ^^!
Jan 13, 2025, 3:16 PM
awesome! Sorry I didn't get the link to the code handy, but as you found you can customize the paths in the typegen json 🙂
Jan 13, 2025, 3:20 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?