form icon indicating copy to clipboard operation
form copied to clipboard

server actions example errors when using zod adapter

Open juliusmarminge opened this issue 1 year ago • 1 comments

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..

  • Latest macOS
  • Latest Arc

TanStack Form adapter

react-form

TanStack Form version

0.19.4

TypeScript version

5.4.2

Additional context

No response

juliusmarminge avatar Apr 26 '24 21:04 juliusmarminge

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

I'll investigate on this soon

crutchcorn avatar Apr 29 '24 18:04 crutchcorn

This should work fully now

crutchcorn avatar Sep 18 '24 21:09 crutchcorn