I was trying to setup TRPC in NextJS, but I am getting this error somehow, no idea why it is?
I installed the latest packages and was trying the recommended stuff on the TRPC site but this error showed up somehow.
7 Replies
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Here it is
@PerryTheProgrammer
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Yeah the error goes away when I remove the whole mutation call on the front end, so pretty sure it's because of the mutation call only.
Maybe it is because you need to send an input? Try to add .nullish() to your zod validation on your endpoint
Ok I will try that.