Supabase with trpc
When trying to configure trpc with supabase, getting this kind of error in the console
tRPC failed on <no-path>: Invariant: Method expects to have requestAsyncStorage, none available
The message is kind of cryptic, does anyone have an idea what this relates to?I
IamIconLiving•417d ago
ok it seems to relate to this
when I am trying to create a supabase client to pass to the context
but what is
requestAsyncStorage
and why is not available 😄 ..
ok figured it out, it was not trpc related, but my bad way of instantiating the actual database in the context4.8KMembers
View on DiscordMore Posts
Using tRPC for uploading audio filesI want to create an api router in tRPC but am not sure if the following code is doable with tRPC. IfEnigmatic INTERNAL SERVER ERRORIm having a problem finding out about what is causing the INTERNAL SERVER ERROR from tRPC in my prodcreateProxySSGHelpers type errorHi all! Anyone know how to use createProxySSGHelpers with appropriate createContext typing?Can I force metadata with the createCaller?I have custom metadata which I check within the middleware. Im trying to write tests for this. CurreVitest error testHow can I test for specific TRPCError code with vitest? I managed to get the message but can't figurUsing generics duplicates the types instead of referring to the existing typesHi!
I'm creating a backend API using TRPC, where I'm encountering a slight problem. TL;DR; when defSet custom header for fetchRequestHandlerIs this possible? currently getting cors issue. Trying to use nextjs's edge function with trpc..
``How to enforce usequery as NonNullableI have a custom hook with infinite query. I check for undefined at the app first render and then it