react-carousel icon indicating copy to clipboard operation
react-carousel copied to clipboard

Install warning: @brainhubeu/[email protected]" has incorrect peer dependency "react@^16.8.0"

Open astriskit opened this issue 5 years ago • 9 comments

Describe the bug Adding the library to the project logs warning of incorrect peer-dependency - react@^16.8.0

To Reproduce Steps to reproduce the behavior:

  1. yarn add @brainhubeu/react-carousel@^2
  2. After the install is done, the warning could be seen on the console.

Expected behavior Shouldn't show the warning.

Screenshots If applicable, add screenshots to help explain your problem.

Environment - linux-based os with node@^12

astriskit avatar Jan 14 '21 13:01 astriskit

This breaks installation on newest versions of npm with the error. The fix would be to update the peer dependencies to allow the newest version of react

npm ERR! Could not resolve dependency: npm ERR! peer react@"^16.8.0" from @brainhubeu/[email protected] npm ERR! node_modules/@brainhubeu/react-carousel npm ERR! @brainhubeu/react-carousel@"^2.0.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.`

txm3278 avatar Apr 16 '21 19:04 txm3278

Hi, same issue here:

$ npm i @brainhubeu/react-carousel
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: [email protected]    
npm ERR! Found: [email protected]
npm ERR! node_modules/react
npm ERR!   react@"17.0.2" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.8.0" from @brainhubeu/[email protected]
npm ERR! node_modules/@brainhubeu/react-carousel
npm ERR!   @brainhubeu/react-carousel@"*" 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!
...

Too bad, it looked great

anthonyrovira avatar May 01 '21 14:05 anthonyrovira

The same

Lokom17 avatar Jun 15 '21 09:06 Lokom17

It works on yarn, not in "npm i @brainhubeu/react-carousel". Try to install yarn and after that yarn add @brainhubeu/react-carousel.

tonystanktinio avatar Jun 19 '21 15:06 tonystanktinio

I'm also getting the same error. My current react version is 18.1.0

Screen Shot 2022-05-05 at 2 26 22 PM

aishwaryakarad avatar May 05 '22 19:05 aishwaryakarad

I get the same.Please how to fix...May i use react^16.8.0 ? image

JulioMARIE avatar Jul 14 '22 09:07 JulioMARIE

I solve like this -> npm i @brainhubeu/react-carousel -legacy-peer-deps image

JulioMARIE avatar Jul 14 '22 10:07 JulioMARIE

Resuelvo así -> npm i @brainhubeu/react-carousel -legacy-peer-deps imagen

Muchas GRACIAS !!!! PROBLEMA SOLICUIONADO

sugheiry-alcala avatar Jul 14 '22 20:07 sugheiry-alcala

I solve like this -> npm i @brainhubeu/react-carousel -legacy-peer-deps image

THANK YOU VERY MUCH!!!!!!!!

lucaseduardosilva avatar Jun 14 '23 13:06 lucaseduardosilva