Zod - instanceof z.ZodError
For some reason, the error is not being recognized as an instanceof Zod and I have no idea why. Anything wrong I am not seeing?
3 Replies
Maybe try extracting the coursePost to it's own schema?
This is from the docs:
Your code seems right, have you tried passing random things to be parsed?
I guess it’s a known bug if importing a zod object @ygor perez
Just force typed it for now I guess
Good to know!