-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
NextJS 13 Dependency Error #5650
Comments
I tried the reproduction steps but didn't get any errors 🤔 I also tried to pull our example repo and install, as our example repo has specified |
@ThangHuuVu, would you mind sharing your npm version? npm install fails because [email protected] literally requires next@12: next-auth/packages/next-auth/package.json Lines 80 to 81 in a787efc
% node -v
v16.18.0
% npm -v
8.19.2
% npm install next-auth
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/next
npm ERR! next@"13.0.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer next@"^12.2.5" from [email protected]
npm ERR! node_modules/next-auth
npm ERR! next-auth@"*" 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.
npm ERR!
npm ERR! See /Users/home/.npm/eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/home/.npm/_logs/2022-10-26T15_42_37_953Z-debug-0.log |
It may also be helpful to make sure npx create-next-app@13 nextjs13 |
Same issue, next@13 is not supported by [email protected]. |
I also get the error, I believe this won't work unless the peer dependency for next in next-auth is updated. |
Everything works fine for me using yarn but I am getting this warning: warning " > [email protected]" has incorrect peer dependency "next@^12.2.5". |
Sadly, I had to use |
Adding |
Apologize, yes I can confirm this is an issue, rolling out a fix now 🙌 |
@ThangHuuVu it's working on exact 13, but not on canary, more details: |
@ThangHuuVu when do you plan to rollout next@13 compatible release? |
When will this peer dependency be updated? |
When fix release? |
@balazsorban44 thank you! do you have understanding when this fix could be released? |
@balazsorban44 @ThangHuuVu any ideas when the update will make it to npm? |
Legend! |
Adding |
Environment
Reproduction URL
none
Describe the issue
I tried to upgrade my existing project to NextJS 13, but got blocker from next-auth package. The error as follows
This also happens when installing on newly created project.
How to reproduce
Create new NextJS project using
npm
Change directory to the newly created project
cd nextjs13
Try to install
next-auth
Then got the error mentioned above
Expected behavior
next-auth
can be used on NextJS 13 projectsThe text was updated successfully, but these errors were encountered: