forge42dev / remix-hook-form

Open source wrapper for react-hook-form aimed at Remix.run
MIT License
332 stars 27 forks source link

[BUG]: `npm i remix-hook-form` fails in Remix V2 #26

Closed setvik closed 1 year ago

setvik commented 1 year ago

Steps to reproduce

  1. Install Remix V2

    npx create-remix@latest remix
  2. Attempt to install remix-hook-form

    cd remix
    npm i remix-hook-form

Expected behavior

remix-hook-form installs correctly

Actual behavior

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: remix@undefined
npm ERR! Found: @remix-run/react@2.0.0
npm ERR! node_modules/@remix-run/react
npm ERR!   @remix-run/react@"^2.0.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @remix-run/react@"^1.15.0" from remix-hook-form@2.0.0
npm ERR! node_modules/remix-hook-form
npm ERR!   remix-hook-form@"*" 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.
AlemTuzlak commented 1 year ago

@setvik Thank you so much for the report! Should be good now!