-
Notifications
You must be signed in to change notification settings - Fork 396
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
v4.0.0-beta.10 next 15.1 react 19.0.0 npm install unable to resolve dependency tree #1844
Comments
I can confirm I have the same issue adding --legacy-peer-deps at least let you install the beta version |
Same issue here |
This will be fixed in the upcoming release ( |
This change will be great, and for the benefit of others, you can also use a Assuming you have react and react-dom 19 as dependencies:
|
Or even more targeted:
|
This should now be fixed in the latest release |
Checklist
Description
I have created a new project in "next": "15.1.0" using npx create-next-app@latest
Whilie installing the Auth0 through npm install @auth0/[email protected] facing npm error ERESOLVE unable to resolve dependency tree
npm error While resolving: [email protected]
npm error Found: [email protected]
npm error node_modules/react
npm error react@"^19.0.0" from the root project
npm error peer react@"^18.2.0 || 19.0.0-rc-de68d2f4-20241204 || ^19.0.0" from [email protected]
npm error node_modules/next
npm error next@"15.1.0" from the root project
npm error peer next@"^14.0.0 || ^15.0.0" from @auth0/[email protected]
npm error node_modules/@auth0/nextjs-auth0
npm error @auth0/nextjs-auth0@"4.0.0-beta.10" from the root project
npm error 1 more (react-dom)
npm error
npm error Could not resolve dependency:
npm error peer react@"^18.3.1" from @auth0/[email protected]
npm error node_modules/@auth0/nextjs-auth0
npm error @auth0/nextjs-auth0@"4.0.0-beta.10" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.
v4.0.0-beta.10 is dependency is not compatible with Next 15.1
Reproduction
Additional context
No response
nextjs-auth0 version
4.0.0-beta.10
Next.js version
15.1.0
Node.js version
v22.2.0
The text was updated successfully, but these errors were encountered: