tRPCttRPC
Powered by
JackJ
tRPC•2y ago•
16 replies
Jack

Type error when creating a server-side context 🤔

I am trying to set up my context for TRPC server, and I get the attached error.

I am using TRPC v10, Node 20.7.0, TS 5.3.3 and Fastify for the API server.

It seems the createHTTPHandler import is only suitable for vanilla HTTP module typings?

Thanks for the help! 😄
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

Context parameters in server side calls
SimoAmiSSimoAmi / ❓-help
15mo ago
creating middleware with context type as param
y_nkYy_nk / ❓-help
5mo ago
error handling on server side
Adam BorygoAAdam Borygo / ❓-help
7mo ago