Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

React 17 type issue on form.Field and form.Subscribe #1302

Open
DevTGhosh opened this issue Mar 18, 2025 · 1 comment
Open

React 17 type issue on form.Field and form.Subscribe #1302

DevTGhosh opened this issue Mar 18, 2025 · 1 comment
Labels

Comments

@DevTGhosh
Copy link

Describe the bug

Getting this issue for the jsx components in react 17

Type 'ReactNode' is not assignable to type 'ReactElement<any, any> | null'.
Type 'undefined' is not assignable to type 'ReactElement<any, any> | null'.

Your minimal, reproducible example

https://codesandbox.io/p/devbox/fklwm9

Steps to reproduce

  1. Create a react 17 project
    "react": "^17.0.1",
    "react-dom": "^17.0.1"
    "@types/react": "^17.0.1",
    "@types/react-dom": "^17.0.1"
  1. Use the simple form example
  2. <form.Field> will throw the above ts error

Expected behavior

Expect the ts error to not be there and for react 17 to be supported.

How often does this bug happen?

Every time

Screenshots or Videos

No response

Platform

  • Every system. Reproducible example in codesandbox.

TanStack Form adapter

None

TanStack Form version

v1.1.0

TypeScript version

No response

Additional context

No response

@crutchcorn crutchcorn added the bug label Mar 20, 2025
@ben-heimberg
Copy link

Any news about this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants