-
Notifications
You must be signed in to change notification settings - Fork 1
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
Upgrade to react 18 #3
Comments
Have you tried it in a brand new project? |
No, i tried it in a current project {
"dependencies": {
"@patrissoljuns/react-click-outside": "^1.0.0",
"react": "^18.2.0",
"react-dom": "^18.2.0"
}
} When i try to install i get this error npm ERR! Found: react@18.2.0
npm ERR! node_modules/react
npm ERR! react@"^18.2.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^17.0.0" from @patrissoljuns/react-click-outside@1.0.0
npm ERR! node_modules/@patrissoljuns/react-click-outside
npm ERR! @patrissoljuns/react-click-outside@"^1.0.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.
|
I've just tried it with a fresh new react project and it works fine. Here's my package.json dependencies
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@patrissoljuns/react-click-outside
do not support react@18.x.yThe text was updated successfully, but these errors were encountered: