VI
VI
Explore posts from servers
TtRPC
Created by VI on 2/3/2024 in #❓-help
Drizzle query not working only inside trpc
My drizzle query works inside a regular nextjs api route. The same query running inside trpc throws an error:
TRPCClientError: Cannot read properties of undefined (reading 'prepare')
at TRPCClientError.from
TRPCClientError: Cannot read properties of undefined (reading 'prepare')
at TRPCClientError.from
I'm using Cloudflare d1 for database.
3 replies