soyguijarro / react-storage-hooks

React hooks for persistent state
https://npm.im/react-storage-hooks
MIT License
166 stars 18 forks source link

Update Peer dependencies to support React 17 #24

Closed PupoSDC closed 2 years ago

PupoSDC commented 3 years ago
  "peerDependencies": {
    "react": "^16.8.0"
  },

leads to a

npm WARN react-storage-hooks@4.0.1 requires a peer of react@^16.8.0 but none is installed. You must install peer dependencies yourself.

if you are using React 17.

momo-sa commented 3 years ago

Yep.

npm ERR! Found: react@17.0.2
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 react-storage-hooks@4.0.1
npm ERR! node_modules/react-storage-hooks
npm ERR!   react-storage-hooks@"^4.0.1" from the root project
PupoSDC commented 2 years ago

Closing as I'm no longer working with this library.