capacitor-community / capacitor-community/react-hooks
Impossible to install on React 17
- Dominant language
- TypeScript
- Stars
- 267
- Forks
- 24
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
With the latest (at this date) _React 17_ and NPM with lock files v2, it is impossible to install without forcing dependencies:
```
λ npm install @capacitor-community/react-hooks
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: greendays@1.1.6
npm ERR! Found: react@17.0.1
npm ERR! node_modules/react
npm ERR! react@"^17.0.1" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.8.6" from @capacitor-community/react-hooks@0.0.11
npm ERR! node_modules/@capacitor-community/react-hooks
npm ERR! @capacitor-community/react-hooks@"*" 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.
```
**To Reproduce**
Steps to reproduce the behavior:
```
λ npm install -g @ionic/cli
λ ionic start myApp blank --type=react
λ cd myApp
λ npm install @capacitor-community/react-hooks
```
Contributor guide
Assessment
This issue has not been assessed yet.