T
tRPC

❓-help

Error building create-t3-app: Page couldn't be rendered statically because it used `cookies`

S1Sonny11/22/2023
I get the following error when building create-t3-app:
TRPCClientError: Dynamic server usage: Page couldn't be rendered statically because it used `cookies`. See more info here: https://nextjs.org/docs/messages/dynamic-server-error
TRPCClientError: Dynamic server usage: Page couldn't be rendered statically because it used `cookies`. See more info here: https://nextjs.org/docs/messages/dynamic-server-error
LLittleLily12/2/2023
Dealing with the same error currently as well. Not using t3 app but am using trpc + next 13 app dir It's specifically only occurring when I make a trpc call on a page/server component to a procedure that requires auth from cookies. Weirdly though if I call the same authentication function that trpc uses directly from the page instead it works, just not when trpc does it

Looking for more? Join the community!