form icon indicating copy to clipboard operation
form copied to clipboard

Type instantiation is excessively deep and possibly infinite - With Simple Reproduction

Open PointSingularity opened this issue 8 months ago • 0 comments

Describe the bug

This is another instance of the TS error. The reproduction is based on the solid example with one new field.

That JsonData type is taken from here

Your minimal, reproducible example

https://codesandbox.io/p/devbox/quizzical-snyder-w4wf5q?file=%2Fsrc%2Findex.tsx

Steps to reproduce

  1. Open the reproduction
  2. See the error

Image

Expected behavior

I would expect the form to handle this recursive type.

How often does this bug happen?

Every time

Screenshots or Videos

No response

Platform

TanStack Form adapter

solid-form

TanStack Form version

1.9.0

TypeScript version

5.8.2

Additional context

No response

PointSingularity avatar May 01 '25 16:05 PointSingularity