VIV
tRPC2y ago
2 replies
VI

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 


I'm using Cloudflare d1 for database.
Was this page helpful?