awran5 / react-simple-star-rating

A simple react component for adding a star rating to your project.
https://react-simple-star-rating.vercel.app/
MIT License
136 stars 32 forks source link

Installation failed in react 18.2.0 #21

Open Onseted opened 2 years ago

Onseted commented 2 years ago

There is peer dependency error for react 18.2.0

I like to ask whether there are any trouble by installing with --force command and also updating plan for current react version. npm ERR! Could not resolve dependency: npm ERR! peer react@"^16 || ^17" from react-google-login@5.2.2 npm ERR! node_modules/react-google-login npm ERR! react-google-login@"^5.2.2" from the root project npm ERR! npm ERR! Conflicting peer dependency: react@17.0.2 npm ERR! node_modules/react npm ERR! peer react@"^16 || ^17" from react-google-login@5.2.2 npm ERR! node_modules/react-google-login npm ERR! react-google-login@"^5.2.2" from the root project

VijayMeena701 commented 2 years ago

the issue is related to react-google-login@5.2.2 and not react-simple-star-rating. the package expects react versions 16 or 17. you can override react versions in your package json as the versions of react dont really matter for this package.

awran5 commented 2 years ago

All dependencies has been updated to the latest versions. As of peer dependency, it's >=18.0.0 now.

@VijayMeena701 Thank you.