-
Notifications
You must be signed in to change notification settings - Fork 437
Closed
Description
Checklist
- The issue can be reproduced in the nextjs-auth0 sample app (or N/A).
- I have looked into the Readme, Examples, and FAQ and have not found a suitable solution or answer.
- I have looked into the API documentation and have not found a suitable solution or answer.
- I have searched the issues and have not found a suitable solution or answer.
- I have searched the Auth0 Community forums and have not found a suitable solution or answer.
- I agree to the terms within the Auth0 Code of Conduct.
Description
I had a problem with another dependency, so I deleted the directory node_modules and executed:
npm iAnd just receive this message:
npm error code ERESOLVE
npm error ERESOLVE could not resolve
npm error
npm error While resolving: @auth0/nextjs-auth0@4.11.1
npm error Found: next@16.0.1
npm error node_modules/next
npm error next@"16.0.1" from the root project
npm error
npm error Could not resolve dependency:
npm error peer next@"^14.2.25 || ^15.2.3" from @auth0/nextjs-auth0@4.11.1
npm error node_modules/@auth0/nextjs-auth0
npm error @auth0/nextjs-auth0@"4.11.1" from the root project
npm error
npm error Conflicting peer dependency: next@15.5.6
npm error node_modules/next
npm error peer next@"^14.2.25 || ^15.2.3" from @auth0/nextjs-auth0@4.11.1
npm error node_modules/@auth0/nextjs-auth0
npm error @auth0/nextjs-auth0@"4.11.1" 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.Reproduction
- Delete node_modules directory.
- Execute npm i
Additional context
I see a message about this error when migrating from Next15, but I now receive this message always when I reinstall my project on a clean installation
nextjs-auth0 version
4.11.0
Next.js version
16.0.1
Node.js version
24.11.0
TheoCanonne
Metadata
Metadata
Assignees
Labels
No labels