I'm trying to troubleshoot some issues with supabase call not working in server component (i'm using typescript), this issue might be linked... Not sure... At wits end.
Next says As a temporary workaround, you can add {/* @ts-expect-error Async Server Component */} above the component to disable type checking for it.
Where exactly should I place it ? An example of how to use this {/* @ts-expect-error Async Server Component */} would be super appreciated.
import supabase from "@/utils/supabase";
{
/* @ts-expect-error Async Server Component */
}
export default async function Materials() {
const { data } = await supabase.from("materials").select();
return <pre>{JSON.stringify(data, null, 2)}</pre>;
}