JackJ
tRPC2y 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
Was this page helpful?