If you're using Zod with react-hook-form, you've probably seen this at least once:

Invalid input: expected number, received NaN

At first glance, it looks like a simple validation issue.

It’s not.

The real problem