Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unmet peer dependency: Swipeable needs older version of React #63

Closed
asyncink opened this issue Apr 3, 2017 · 2 comments
Closed

Unmet peer dependency: Swipeable needs older version of React #63

asyncink opened this issue Apr 3, 2017 · 2 comments

Comments

@asyncink
Copy link

asyncink commented Apr 3, 2017

I have a project with installed React@15.4.1

Now I want to add this package, but this error appears:

-- UNMET PERR DEPENDENCY react@>=0.12.0 || ^15.0.0-0
npm WARN react-swipeable@3.9.2 requires a peer of react@>=0.12.0 || ^15.0.0-0
but none was installed

If I understand right, this package has React from 0.12 to 15.0 versions in its peer dependencies list, but my project uses higher version and that's why I can't add this package to my project. So what is possible solution?

Please help

@asyncink asyncink changed the title Unmet peer dependency: Swipeable need older version of React Unmet peer dependency: Swipeable needs older version of React Apr 3, 2017
@hartzis
Copy link
Collaborator

hartzis commented Apr 3, 2017

@git4t3ch what node and/or npm/yarn version are you using?

npm should be fine with that peer dep for react@15.4.1

I checked https://semver.npmjs.com/ and put in package:react and range:>=0.12.0 || ^15.0.0-0 and 15.4.1 is highlighted.

@hartzis
Copy link
Collaborator

hartzis commented Apr 13, 2017

@git4t3ch Found precedent that this is most likely another package in your dependencies throwing this warning, but sadly npm prints all deps even though 15.4.1 is correctly fulfilled by ^15.0.0-0

please checkout this reference:
reduxjs/react-redux#342 (comment)

@hartzis hartzis closed this as completed Apr 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants