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

react-spinners@0.9.0 incompatible with react@17.0.1 #321

Closed
EbenBosman opened this issue Dec 22, 2020 · 4 comments
Closed

react-spinners@0.9.0 incompatible with react@17.0.1 #321

EbenBosman opened this issue Dec 22, 2020 · 4 comments
Labels
Projects

Comments

@EbenBosman
Copy link

I am attempting to update the dependencies of the project I am working on. However it seems that react-spinners@0.9.0 (Latest version as of writing) is incompatable with react@17.0.1. Please the output of npm install below:

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: xxxxxx@0.0.1
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.0.0" from react-spinners@0.9.0
npm ERR! node_modules/react-spinners
npm ERR!   react-spinners@"^0.9.0" 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.
@EbenBosman EbenBosman changed the title react-spinners0.9.0 incompatible with react@17.0.1 react-spinners@0.9.0 incompatible with react@17.0.1 Dec 22, 2020
@mlippert
Copy link

mlippert commented Dec 23, 2020

Interesting. I see:

npm WARN react-spinners@0.9.0 requires a peer of react@^16.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN react-spinners@0.9.0 requires a peer of react-dom@^16.0.0 but none is installed. You must install peer dependencies yourself.

But everything still works. I'm running npm version 6.14.10 and node version v12.20.0 in case that may matter.

Since everything still works w/ react and react-dom v17 it'd be nice if the react-spinners peer dependency version was updated to reflect that (unless there are problems I just haven't encountered).

[edit] Also to be fair, I've got very limited use of react-spinners, just the ScaleLoader, so not the best test of the package functionality!

@davidhu2000
Copy link
Owner

should be a fairly easy fix. https://github.com/davidhu2000/react-spinners/blob/master/package.json#L92-L93

need to add v17 into peer dependencies

@davidhu2000 davidhu2000 added this to Todo in v0.10.0 Dec 27, 2020
@davidhu2000 davidhu2000 moved this from Todo to In Progress in v0.10.0 Dec 27, 2020
v0.10.0 automation moved this from In Progress to Done Dec 27, 2020
@davidhu2000 davidhu2000 reopened this Dec 27, 2020
@davidhu2000
Copy link
Owner

@EbenBosman can you install react-spinners@0.10.0-alpha.3 and see if this issue is resolved?

@T0X1CCAT
Copy link

@EbenBosman can you install react-spinners@0.10.0-alpha.3 and see if this issue is resolved?

i believe the issue is fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
v0.10.0
  
Done
Development

No branches or pull requests

4 participants