halfmoonH
tRPC3y ago
1 reply
halfmoon

createCaller from API NextJS (Pages Directory)

Hi, i want to call the procedure I was created in nextJS API.. and I already look at the documentation but I'm getting error like this 👇🏻

Argument of type '{}' is not assignable to parameter of type '{ session: Session | null; prisma: PrismaClient<Prisma.PrismaClientOptions, never, DefaultArgs>; }'.

how to fix it?
image.png
image.png
Was this page helpful?