Incompatible with React versions >16
Describe the bug This package seems to be constrained to a React peer dependency if 16.x, making it incompatible with React 17 and 18 codebases.
I could find no reason in the code for this limitation. Any chance we could loosen up the peer dependency constraint to allow newer react projects to use this hook? :)
@tconroy If you need to override peer dependencies of your dependencies, npm >v8.3 supports override in package.json as:
{
"dependencies": {},
"devDependencies": {},
"overrides": {
"@harelpls/use-pusher": {
"react": "^17.0.2"
}
},
}
As an alternative to @Naartti `s solution, just ignore the legacy peers using:
npm install --save @harelpls/use-pusher --legacy-peer-deps
Hope the dependencies will get updated shortly.
npm install --save @harelpls/use-pusher --legacy-peer-deps
This worked on my local but fails when i push to vercel.
I think i can fork the package and bump the react dependency and make a PR - is anyone accepting PRs these days?
Strange it didn't work:
yarn install v1.22.19 warning ../package.json: No license field [1/5] 🔍 Validating package.json... [2/5] 🔍 Resolving packages... [3/5] 🚚 Fetching packages... error An unexpected error occurred: "https://packages.convoy.com/artifactory/api/npm/npm/react-is/-/react-is-17.0.1.tgz: Request failed "401 Unauthorized"". info If you think this is a bug, please open a bug report with the information provided in "/Users/fotoflo/use-pusher/yarn-error.log". info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.