TRPCClientError: Cannot read properties of undefined (reading ‘set’)
Im using nextjs app router, trpc, prisma, and trying to implement login functionality with setting a cookie. Im trying to set cookie in res headers, but i get this error. I cannot figure out why?