Xulo
Xulo
NNuxt
Created by Xulo on 11/16/2024 in #❓・help
Sanity Navigation Error: TypeError: can't access property
Found it: I used the wrong syntax: groq[_type == "project" && slug.current == "${slug}"]{ ... Instead of: const query = groq`[_type == "project" && slug.current == $slug][0]{ _id, title, description }; const { data: project } = await useSanityQuery<Project>(query, { slug: route.params.name, }); Now it works!
12 replies
NNuxt
Created by Xulo on 11/16/2024 in #❓・help
Sanity Navigation Error: TypeError: can't access property
@kapa.ai This is my sanity config in nuxt config // nuxt.config.ts sanity: { projectId: process.env.NUXT_SANITY_PROJECT_ID, },
12 replies
NNuxt
Created by Xulo on 11/16/2024 in #❓・help
Sanity Navigation Error: TypeError: can't access property
Does not work, using navigateTo(/projects/${project.name}) gives the same issue
12 replies
NNuxt
Created by Xulo on 8/5/2024 in #❓・help
i18n: Configuring Dynamic Translated Slugs
Thank you! Will try it
3 replies
NNuxt
Created by Xulo on 6/25/2024 in #❓・help
Nuxthub with Cloudflare Pages
No description
3 replies
NNuxt
Created by Xulo on 6/25/2024 in #❓・help
Nuxthub with Cloudflare Pages
No description
3 replies
NNuxt
Created by Xulo on 5/22/2023 in #❓・help
SSR Issue: Empty Data on Page Reload with Nuxt 3 and Strapi useAsyncData
5 replies
NNuxt
Created by Xulo on 5/22/2023 in #❓・help
SSR Issue: Empty Data on Page Reload with Nuxt 3 and Strapi useAsyncData
Yes I got some hydration issues, but these where because I was using a div inside a p tag. Here was the issue https://discord.com/channels/473401852243869706/1103357337793736785/1110685212263845978 Now all my hydration problems are fixed, but I’m still facing this issue. I tried using useFetch and noticed it does work with online production Strapi but not when fetching localhost:1337
5 replies