TRPCClientError: Cannot use 'in' operator to search for 'error' in null
I am getting weird errors only in production. Everything works and builds perfectly fine locally, but I'm not sure why I am getting these errors in production. I am using the https://github.com/clerk/t3-turbo-and-clerk boilerplate.
GitHub
GitHub - clerk/t3-turbo-and-clerk: A t3 Turbo starter with Clerk as...
A t3 Turbo starter with Clerk as the auth provider. - GitHub - clerk/t3-turbo-and-clerk: A t3 Turbo starter with Clerk as the auth provider.
2 Replies
We need more info
Thanks for the comment, but I kinda figured it out. I'm unsure what was happening but essentially the auth cookie from prod and dev got messed up and it wasn't allowing me to auth in prod and access my trpc backend. I essentially just cleared my browser storage on prod and dev and re-authed and everything worked.
The FE error I was getting was pretty bad too lol smh