soywod / react-pin-field

📟 React component for entering PIN codes.
https://soywod.github.io/react-pin-field/
MIT License
412 stars 24 forks source link

React 18 #55

Closed luckyxhu closed 2 years ago

luckyxhu commented 2 years ago

react-pin-field@2.0.0-beta.3" has incorrect peer dependency "react-dom@^16.8 || ^17"

YewTreeWeb commented 2 years ago

Hi, I'm getting the same issue. Here is my output:

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: reach-next@0.1.0
npm ERR! Found: react@18.0.0
npm ERR! node_modules/react
npm ERR!   react@"18.0.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.8 || ^17" from react-pin-field@2.0.0-beta.3
npm ERR! node_modules/react-pin-field
npm ERR!   react-pin-field@"*" 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!
npm ERR! See /Users/mat1989/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/mat1989/.npm/_logs/2022-05-06T07_47_21_428Z-debug-0.log
soywod commented 2 years ago

Fixed by https://github.com/soywod/react-pin-field/pull/54, it will be fixed in the next release!