voronianski / react-star-rating-component

Basic React component for star (or any other icon based) rating elements
http://voronianski.github.io/react-star-rating-component/example
MIT License
379 stars 77 forks source link

Not installing with react 18 #77

Open areebPakWheels opened 1 year ago

areebPakWheels commented 1 year ago

Currently, I have created a new next js project with the latest configuration but I am unable to install this library

arthur-mendonca commented 1 month ago

Same problem here. Tried to install the lib today with NPM in my React project, but got this error:

npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: backoffice@0.1.0 npm ERR! Found: react@18.3.1 npm ERR! node_modules/react npm ERR! react@"^18.2.0" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer react@"^16.2.0" from react-star-rating-component@1.4.1 npm ERR! node_modules/react-star-rating-component npm ERR! react-star-rating-component@"*" 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.