iway1 / react-ts-form

https://react-ts-form.com
MIT License
2.01k stars 33 forks source link

issue: npm ERR Could not resolve dependency #105

Closed ingadi closed 1 year ago

ingadi commented 1 year ago

Version Number

1.6.3

Codesandbox/Expo snack

No response

Steps to reproduce

  1. npm install @ts-react/form
  2. npm install react-hook-form @hookform/resolvers
  3. npm update

Expected behaviour

No npm Errors.

Relevant log output

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: bulletproof-react-vite@0.0.0
npm ERR! Found: @hookform/resolvers@3.1.0
npm ERR! node_modules/@hookform/resolvers
npm ERR!   @hookform/resolvers@"^3.1.0" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer @hookform/resolvers@"^2.8.0" from @ts-react/form@1.6.3
npm ERR! node_modules/@ts-react/form
npm ERR!   @ts-react/form@"^1.6.3" from the root project
npm ERR! 
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
ingadi commented 1 year ago

Skipping installing @hookform/resolvers doesn't seem to affect my forms so that's how I'm getting around this.

iway1 commented 1 year ago

think we just need to update the package.json to work with the new version of hookform resolvers. Thanks for the report