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
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
BadBoy
BadBoyOP3y ago
Here it is
BadBoy
BadBoyOP3y ago
@PerryTheProgrammer
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
BadBoy
BadBoyOP3y ago
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.
Gabriel
Gabriel3y ago
Maybe it is because you need to send an input? Try to add .nullish() to your zod validation on your endpoint
BadBoy
BadBoyOP3y ago
Ok I will try that.

Did you find this page helpful?