Dog
Dog
NNuxt
Created by Dog on 2/16/2025 in #❓・help
Page appearing empty when navigating (but not directly)
all LLMs are garbage
9 replies
NNuxt
Created by Dog on 2/16/2025 in #❓・help
Page appearing empty when navigating (but not directly)
so you spend like 5 years reading it
9 replies
NNuxt
Created by Dog on 2/16/2025 in #❓・help
Page appearing empty when navigating (but not directly)
why does it always try to write as much as physically possible
9 replies
NNuxt
Created by Dog on 2/16/2025 in #❓・help
Page appearing empty when navigating (but not directly)
need actual help not whatever generic crap that is
9 replies
NNuxt
Created by Dog on 2/16/2025 in #❓・help
[closed] Page appearing empty when navigating (but not directly)
@kapa.ai
const JOBS_QUERY = groq`*[
_type == "job"
&& defined(slug.current)
]|order(title, description)[0...12]{_id, title, description, department, open, slug}`;
const JOBS_QUERY = groq`*[
_type == "job"
&& defined(slug.current)
]|order(title, description)[0...12]{_id, title, description, department, open, slug}`;
24 replies
NNuxt
Created by Dog on 2/16/2025 in #❓・help
[closed] Page appearing empty when navigating (but not directly)
const { data: jobs, error } = await useAsyncData(JOBS_QUERY, () => useSanityQuery<SanityDocument[]>(JOBS_QUERY));

if (error.value) {
throw createError({
statusCode: 500,
statusMessage: `Failed to fetch jobs`,
})
}
const { data: jobs, error } = await useAsyncData(JOBS_QUERY, () => useSanityQuery<SanityDocument[]>(JOBS_QUERY));

if (error.value) {
throw createError({
statusCode: 500,
statusMessage: `Failed to fetch jobs`,
})
}
gives the error [nuxt] [request error] [unhandled] [500] Cannot stringify a function @kapa.ai
24 replies
NNuxt
Created by Dog on 2/16/2025 in #❓・help
[closed] Page appearing empty when navigating (but not directly)
@kapa.ai jobs.data does not exist, that's not how useAsyncData works
24 replies
NNuxt
Created by Dog on 2/16/2025 in #❓・help
[closed] Page appearing empty when navigating (but not directly)
@kapa.ai done that but how do i fix Property 'filter' does not exist on type '_AsyncData<SanityDocument[] | null, Error>' here:
const handleSearch = () => {
results.value = jobs?.value?.filter((job: SanityDocument) =>
Object.values(job).some((value) => value.toString().toLowerCase().includes(search.value.toLowerCase()))
) || [];
};
const handleSearch = () => {
results.value = jobs?.value?.filter((job: SanityDocument) =>
Object.values(job).some((value) => value.toString().toLowerCase().includes(search.value.toLowerCase()))
) || [];
};
24 replies
NNuxt
Created by Dog on 1/19/2025 in #❓・help
Actual files not showing with Content v3
that's outdated
7 replies