Skip to content

npm install fails for react/standard-schema example #2216

@michaelboyles

Description

@michaelboyles

Describe the bug

When installing the example at react/standard-schema, I get this error

npm error code ERESOLVE
npm error ERESOLVE unable to resolve dependency tree
npm error
npm error While resolving: @tanstack/form-example-react-standard-schema@undefined
npm error Found: @types/react@19.1.17
npm error node_modules/@types/react
npm error   dev @types/react@"~19.1.0" from the root project
npm error   peer @types/react@">=16.8" from @tanstack/react-devtools@0.9.13
npm error   node_modules/@tanstack/react-devtools
npm error     dev @tanstack/react-devtools@"^0.9.7" from the root project
npm error
npm error Could not resolve dependency:
npm error peer @types/react@"^19.2.0" from @types/react-dom@19.2.3
npm error node_modules/@types/react-dom
npm error   dev @types/react-dom@"^19.0.3" from the root project
npm error   peer @types/react-dom@">=16.8" from @tanstack/react-devtools@0.9.13
npm error   node_modules/@tanstack/react-devtools
npm error     dev @tanstack/react-devtools@"^0.9.7" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry this command with --force or --legacy-peer-deps to accept an incorrect (and potentially broken) dependency resolution.

Your minimal, reproducible example

https://github.com/TanStack/form/tree/main/examples/react/standard-schema

Steps to reproduce

cd examples/react/standard-schema
npm install

Expected behavior

Installs correctly

How often does this bug happen?

Every time

Screenshots or Videos

No response

Platform

Windows

TanStack Form adapter

None

TanStack Form version

1.33.0

TypeScript version

No response

Additional context

Bumping the react types to 19.2 fixes the problem

"@types/react": "~19.2.0",
"@types/react-dom": "^19.2.0",

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions