TanStack / form

🤖 Powerful and type-safe form state management for the web. TS/JS, React Form, Solid Form, Lit Form and Vue Form.
https://tanstack.com/form
MIT License
3.77k stars 341 forks source link

server actions example errors when using zod adapter #690

Closed juliusmarminge closed 1 month ago

juliusmarminge commented 6 months ago

Describe the bug

When adding a validator adapter to the next server actions example it starts erroring trying to read the validator. Maybe I'm setting it up incorrectly but i just added the adapter

Your minimal, reproducible example

https://github.com/juliusmarminge/tanstack-form-zod-server-actions

Steps to reproduce

Install deps, start server and try to submit:

https://github.com/TanStack/form/assets/51714798/beacc19f-c105-48cb-aba8-9068389b7f0e

Expected behavior

it to work

How often does this bug happen?

Every time

Screenshots or Videos

No response

Platform

Don't think it's relevant but..

TanStack Form adapter

react-form

TanStack Form version

0.19.4

TypeScript version

5.4.2

Additional context

No response

crutchcorn commented 6 months ago

I think I know what's going on - oversight on my part when implementing the SSR stuff.

I'll investigate on this soon

crutchcorn commented 1 month ago

This should work fully now