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

Could not resolve dependency: react #1045

Open
simonguo opened this issue Sep 26, 2021 · 4 comments
Open

Could not resolve dependency: react #1045

simonguo opened this issue Sep 26, 2021 · 4 comments

Comments

@simonguo
Copy link

npm ERR! Found: react@17.0.2
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@"^0.14.0 || ^15.0.0 || ^16.0.0" from react-text-mask@5.4.3
npm ERR! node_modules/react-text-mask
npm ERR!   react-text-mask@"5.4.3" 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.

https://github.com/text-mask/text-mask/blob/master/react/package.json#L17

@fefrontend
Copy link

Same issue here. Would love to see a workaround or solution. Thanks.

@felix-last
Copy link

Duplicates issue #1032 and addressed by PR #1038 . However, repo is unmaintained, so that probably won't happen.

@DaltheCow
Copy link

The only solution for this that worked for me was force npm installing react-text-mask...not ideal

@Sathishvel
Copy link

Add || ^17.0.0 in peerDependencies (package-lock.json)

"peerDependencies": {
"react": "^0.14.0 || ^15.0.0 || ^16.0.0 || ^17.0.0"
},

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

5 participants