Unlock seamless workflows and faster delivery with our latest releases - Join the deep dive

Error in project display resolved with help from the community.

8 replies
Last updated: Sep 11, 2023
Hello! I'm excited for this project https://www.youtube.com/watch?v=OcTPaUfay5I&t=1325s by Kapehe to work. I've gone back and rebuilt the whole project on a brand new Mac after first trying on a Linux machine and I still get the same error when we begin getting the page.tsx ready to display the projects. The admin section works just fine... Please help cuz I'm excited how these technologies tie together. The tutorial is amazing by the way and can't wait to get past this bump. Thank you!
Sep 9, 2023, 6:46 PM
Could you please post your GROQ query (from
getProjects()
)?
Sep 9, 2023, 8:01 PM
Cool, thanks. I even had GPT-4 check the GROQ script... :)
Sep 9, 2023, 8:05 PM
You’ll want your equality check on line 18 to use double equals (
==
).
Sep 9, 2023, 8:07 PM
Ah, I can see where it’s typed here . Sometimes those ligatures can make it tough to follow.
Sep 9, 2023, 8:09 PM
OMG, 🤦. Thank you so much!
Sep 9, 2023, 8:13 PM
That worked.
Sep 9, 2023, 8:13 PM
Great! Glad you’re back in business! 😀
Sep 9, 2023, 8:16 PM
The only strange thing that doesn't happen on the tutorial is that the front end does not reflect/refresh the changes made in admin until I, for example, change the date in the apiVersion field in sanity-utils.ts.
Sep 11, 2023, 4:57 AM

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?