minwork / use-long-press

React hook for detecting click (or tap) and hold event
MIT License
120 stars 12 forks source link

Error during installation with React 18 #31

Closed gabrielenosso closed 2 years ago

gabrielenosso commented 2 years ago

npm ERR! While resolving: devices-xos-store@0.0.1 npm ERR! Found: react@18.0.0 npm ERR! node_modules/react npm ERR! react@"^18.0.0" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer react@"^16.8.0 || ^17.0.0" from use-long-press@2.0.0

I suppose it needs react 18 in the peer dependencies.

minwork commented 2 years ago

Due to potential breaking changes, supporting React 18 will require additional testing before adding it as peer dependency.

github-actions[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

minwork commented 2 years ago

This will be addressed in the next release

minwork commented 2 years ago

Added experimental support for React 18 in v2.0.2

If you encounter any problems please report them as new issues.