form
form copied to clipboard
react-form-devtools has a peer dependency on react 19 via @tanstack/devtools-utils
Describe the bug
Even though react-form-devtools itself has a peer dependency on react 17,18 and 19
https://github.com/TanStack/form/blob/e7b0dcfe1b17d6382ea082023468027bf2f32183/packages/react-form-devtools/package.json#L65-L67
It has a dependency on @tanstack/devtools-utils which has a peer dependency on react 19 only
https://github.com/TanStack/devtools/blob/8e354af674ac581efd5eacff2be8a0e0a0d1207f/packages/devtools-utils/package.json#L53-L55
So installing into a react 19 codebase results in the following
npm warn ERESOLVE overriding peer dependency
npm warn While resolving: @tanstack/[email protected]
npm warn Found: [email protected]
npm warn node_modules/react
npm warn react@"18.3.1" from the root project
npm warn
npm warn Could not resolve dependency:
npm warn peerOptional react@">=19.0.0" from @tanstack/[email protected]
npm warn node_modules/@tanstack/react-form-devtools/node_modules/@tanstack/devtools-utils
npm warn @tanstack/devtools-utils@"^0.0.4" from @tanstack/[email protected]
npm warn node_modules/@tanstack/react-form-devtools
npm warn
npm warn Conflicting peer dependency: [email protected]
npm warn node_modules/react
npm warn peerOptional react@">=19.0.0" from @tanstack/[email protected]
npm warn node_modules/@tanstack/react-form-devtools/node_modules/@tanstack/devtools-utils
npm warn @tanstack/devtools-utils@"^0.0.4" from @tanstack/[email protected]
npm warn node_modules/@tanstack/react-form-devtools
Using versions
"@tanstack/react-form": "1.25.0",
"@tanstack/react-form-devtools": "0.2.1",
Your minimal, reproducible example
NA
Steps to reproduce
Install react-form-devtools into a react 18 codebase
Expected behavior
Not to warn about a peer dependency issue
How often does this bug happen?
Every time
Screenshots or Videos
No response
Platform
N/A
TanStack Form adapter
react-form
TanStack Form version
1.25.0
TypeScript version
No response
Additional context
No response