Help with sanity typegen
Hi Papafam, I have integrated sanity in my existing react-vite project. I am now adding typescript in my project. I have correctly created schemaTypes and GROQ queries but when generate types with these commands: npx sanity schema extract - npx sanity typegen generate, it creates types for schema but do not generate types for GROQ queries whereas I have 4 GROQ queries in my project.
The exact message is as: Generated TypeScript types for 15 schema types and 0 GROQ queries in 0 files into: ./sanity.types.ts
Can some one please help me to fix this error!
1
0 comments
Muhammad Sohail Shams
1
Help with sanity typegen
University of Code
skool.com/universityofcode
You'll get Exclusive Lessons & Content, Badass Community Support & More here to elevate as a Dev!
Leaderboard (30-day)
Powered by