TRPC updated recently, can't use CreateNextContextOptions to implement Clerk
Hi, I tried to follow the Clerk guide https://clerk.com/docs/references/nextjs/trpc and its quite diferent from the code we have.
Also tried to follow a guide for clerk +trpc,(https://www.youtube.com/watch?v=ZK-w-yFWfxM) but now, CreateTRPCContext uses directly Headers, (this is the base code)
(server/api/trpc.ts)
so If I use this code of the video to implement Clerk Auth
No errors on trpc file, but I get errors in route.ts and in server.ts
headers show this error:
Object literal may only specify known properties, and 'headers' does not exist in type 'CreateNextContextOptions'.ts(2353)
Any idea how to fix this? CreateNextContextOptions does not contain the headers object so not sure how to fix it.
thanks!
Also tried to follow a guide for clerk +trpc,(https://www.youtube.com/watch?v=ZK-w-yFWfxM) but now, CreateTRPCContext uses directly Headers, (this is the base code)
(server/api/trpc.ts)
so If I use this code of the video to implement Clerk Auth
No errors on trpc file, but I get errors in route.ts and in server.ts
headers show this error:
Object literal may only specify known properties, and 'headers' does not exist in type 'CreateNextContextOptions'.ts(2353)
Any idea how to fix this? CreateNextContextOptions does not contain the headers object so not sure how to fix it.
thanks!

