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

Unable to resolve dependency tree #57

Open
AltaraceO opened this issue Jan 4, 2022 · 3 comments
Open

Unable to resolve dependency tree #57

AltaraceO opened this issue Jan 4, 2022 · 3 comments

Comments

@AltaraceO
Copy link

When attempting to install react-usa-map on linux (npm install react-usa-map --save)
I got the following errors:

While resolving: react-app@0.1.0
Found: react@17.0.2
node_modules/react
react@"^17.0.2" from the root project

Could not resolve dependency:
peer react@"^16.13.1" from react-usa-map@1.5.0
node_modules/react-usa-map
react-usa-map@"*" from the root project

Any suggestions on how to resolve this issue?

@scott-callisto
Copy link

I had this problem a month or so ago. The only way I was able to resolve it was to change my react and react-dom dependences both to ^16.13.1. If you're not using any version 17-specific features of react, this may work for you. @gabidavila says on her bio page that she needs help with this repo, so I wouldn't expect version 17 compatibility soon.

@tteguayco
Copy link

The library can be installed without having to downgrade to version 16 of react and react-dom by using the --force option when installing it:

npm i --save react-usa-map --force

This --force option will also need to be specified when running npm install or npm ci.

I'm using React 17 and it works great.

@scott-callisto
Copy link

Thanks for the tip. I must admit that I'm hesitant to use --force on production code, as that could allow other potentially serious incompatibilities to be bypassed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants