Commit f7ad47e
authored
fix(examples/nextjs-app): downgrade zod to v3 to fix type-check error (#305)
@hookform/resolvers@5.2.2 has a known type incompatibility with zod v4.x
due to branded version mismatch (_zod.version.minor).
- Downgrade zod from ^4.4.3 to ^3.24.0
- Update schema to use zod v3 API (z.string().url() instead of z.url(),
required_error/invalid_type_error instead of error option)
- Update import from 'zod/v4' to 'zod'
See: react-hook-form/resolvers#8421 parent 03867af commit f7ad47e
3 files changed
Lines changed: 18 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
479 | 479 | | |
480 | 480 | | |
481 | 481 | | |
482 | | - | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
483 | 486 | | |
484 | 487 | | |
485 | | - | |
| 488 | + | |
486 | 489 | | |
487 | 490 | | |
488 | 491 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments