⚠ This page is served via a proxy. Original site: https://github.com
This service does not collect credentials or authentication data.
Skip to content

Svelte-Form: Maximum call stack size exceeded when using form composition. #1992

@diegopluna

Description

@diegopluna

Describe the bug

Following the official guide of form composition with svelte (https://tanstack.com/form/latest/docs/framework/svelte/guides/form-composition)

Anytime i use form.Appfield I get the maximum call stack size exceeded error(log: RangeError: Maximum call stack size exceeded.txt)

I tested a bit a noticed that if i only rendered the form when in browser environment it worked, it seems to be an issue with SSR.

Your minimal, reproducible example

https://tanstack.com/form/latest/docs/framework/svelte/guides/form-composition + SvelteKit

Steps to reproduce

Following the composition guide:

  • Create the form context
  • Create the form creator function
  • Define a form using createAppForm
  • Create the example text-field component
  • define the text-field component using form.AppField
  • Render the form and observe the error in the logs and in the page ( 500 error)

Expected behavior

Expected the form to be properly rendered without errors.

How often does this bug happen?

Every time

Screenshots or Videos

No response

Platform

  • OS: MacOS 26.2
  • Browser: Chrome (Chromium 143)
  • Runtime: Bun

TanStack Form adapter

svelte-form

TanStack Form version

v1.27.7

TypeScript version

v5.9.3

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions