npx shadcn@latest add form #8039
southstandblue
started this conversation in
General
Replies: 1 comment
-
Ok I found a much better solution for this: {
"overrides": {
"react": "19.1.1",
"react-dom": "19.1.1",
"react-query": {
"react": "19.1.1",
"react-dom": "19.1.1"
}
}
} Then reinstall dependencies: rm -rf node_modules package-lock.json
npm install If not you can always try: Its usually caused by package depending on older versions |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have received this error while attempting to add the react-hook-form
npx shadcn@latest add form
✔ Checking registry.
⠸ Installing dependencies.
Something went wrong. Please check the error below for more details.
If the problem persists, please open an issue on GitHub.
Command failed with exit code 1: npm install @radix-ui/react-label @radix-ui/react-slot @hookform/resolvers zod react-hook-form
npm error code ERESOLVE
npm error ERESOLVE could not resolve
npm error
npm error While resolving: [email protected]
npm error Found: [email protected]
npm error node_modules/react
npm error peer react@"^16.11.0 || ^17 || ^18 || ^19" from @auth0/[email protected]
npm error node_modules/@auth0/auth0-react
npm error @auth0/auth0-react@"^2.4.0" from the root project
npm error peer react@">=16.8.0" from @floating-ui/[email protected]
npm error node_modules/@floating-ui/react-dom
npm error @floating-ui/react-dom@"^2.0.0" from @radix-ui/[email protected]
npm error node_modules/@radix-ui/react-popper
npm error @radix-ui/react-popper@"1.2.8" from @radix-ui/[email protected]
npm error node_modules/@radix-ui/react-menu
npm error @radix-ui/react-menu@"2.1.16" from @radix-ui/[email protected]
npm error node_modules/@radix-ui/react-dropdown-menu
npm error 38 more (@radix-ui/react-arrow, @radix-ui/react-collection, ...)
npm error
npm error Could not resolve dependency:
npm error peer react@"^16.8.0 || ^17.0.0 || ^18.0.0" from [email protected]
npm error node_modules/react-query
npm error react-query@"^3.39.3" from the root project
npm error
npm error Conflicting peer dependency: [email protected]
npm error node_modules/react
npm error peer react@"^16.8.0 || ^17.0.0 || ^18.0.0" from [email protected]
npm error node_modules/react-query
npm error react-query@"^3.39.3" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.
npm error
npm error
npm error For a full report see:
npm error /Users/nickc/.npm/_logs/2025-08-16T15_06_35_187Z-eresolve-report.txt
npm error A complete log of this run can be found in: /Users/nickc/.npm/_logs/2025-08-16T15_06_35_187Z-debug-0.log
Beta Was this translation helpful? Give feedback.
All reactions