Skip to content
Discussion options

You must be logged in to vote

Turns out I was on the right track.

Declaring the Zod error message with something like z.string({error: () => get_error('error')}) works. I just missed a file that used the get_error function. Once I converted the other file's usage to the function version, everything worked fine.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@brandonpittman
Comment options

@brandonpittman
Comment options

Answer selected by brandonpittman
@K1DV5
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants