tRPCttRPC
Powered by
halfmoonH
tRPC•3y 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
tRPCJoin
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
5,015Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

SSR with NextJs app directory
WiznetWWiznet / ❓-help
14mo ago
Deprecated createCaller alternative?
HichHHich / ❓-help
13mo ago
Nextjs Proxy an exteral TRPC api via pages/api/trpc/[trpc].ts ?
Ahmed EidAAhmed Eid / ❓-help
12mo ago
calling trpc endpoints from vanilla nextJs api routes
TkDodo 🔮TTkDodo 🔮 / ❓-help
4y ago