TanStackT
TanStack4mo ago
5 replies
primary-violet

getHeader is not a function when using Tanstack Form with Tanstack Start RC

Repro: https://stackblitz.com/edit/tanstack-form-tdx1ytd7?file=vite.config.ts
Unfortunately a separate already reported error prevents the repro from running in stack blitz but can still download if needed.

Server Fn Error!

TypeError: (0 , __vite_ssr_import_1__.getHeader) is not a function
at eval (node_modules/@tanstack/react-form/src/start/createServerValidate.tsx:102:21)
at getFormData (src/utils/form.tsx:24:33)
at server (node_modules/@tanstack/start-client-core/src/createServerFn.ts:728:38)
at applyMiddleware (node_modules/@tanstack/start-client-core/src/createServerFn.ts:643:10)
at next (node_modules/@tanstack/start-client-core/src/createServerFn.ts:211:14)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
Was this page helpful?