nextauthjs / next-auth

Authentication for the Web.
https://authjs.dev
ISC License
24.1k stars 3.34k forks source link

Cannot Install Next Auth with next@14.0.2-canary.14 #9075

Closed crawfordleeds closed 10 months ago

crawfordleeds commented 10 months ago

Environment

System: OS: macOS 14.0 CPU: (8) arm64 Apple M2 Memory: 79.02 MB / 24.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 18.18.0 - ~/Library/Caches/fnm_multishells... Yarn: 1.22.19 - ~/Library/Caches/fnm_multishells... npm: 10.2.3 - ~/Documents/.... pnpm: 8.9.2 - ~/Library/Caches/fnm_multishells... Browsers: Chrome: 119.0.6045.105 Safari: 17.0

npmPackages: next: ^14.0.2-canary.14 => 14.0.2-canary.14 react: 18.2.0 => 18.2.0

Reproduction URL

n/a

Describe the issue

Attempting to install next-auth (npm i next-auth) in a project using a canary version of Next yields the following error:

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: ****@***
npm ERR! Found: next@14.0.2-canary.17
npm ERR! node_modules/next
npm ERR!   next@"^14.0.2-canary.14" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer next@"^12.2.5 || ^13 || ^14" from next-auth@4.24.4
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! 
npm ERR! For a full report see:
npm ERR! /Users/***/.npm/_logs/2023-11-07T01_29_49_339Z-eresolve-report.txt

How to reproduce

You can reproduce by installing the canary version of Next they attempting to install next auth.

npm i next@canary
npm i next-auth

Or, if you already have a project with next-auth, just run npm i next@canary && npm i

Expected behavior

I believe Next recommends staying up to date with the latest canary version, thus I would expect next-auth to install with next@canary.

github-actions[bot] commented 10 months ago

We could not detect a valid reproduction link. Make sure to follow the bug report template carefully.

Why was this issue closed?

To be able to investigate, we need access to a reproduction to identify what triggered the issue. We need a link to a public GitHub repository. Example: (NextAuth.js example repository).

The bug template that you filled out has a section called "Reproduction URL", which is where you should provide the link to the reproduction.

What should I do?

Depending on the reason the issue was closed, you can do the following:

In general, assume that we should not go through a lengthy onboarding process at your company code only to be able to verify an issue.

My repository is private and cannot make it public

In most cases, a private repo will not be a sufficient minimal reproduction, as this codebase might contain a lot of unrelated parts that would make our investigation take longer. Please do not make it public. Instead, create a new repository using the templates above, adding the relevant code to reproduce the issue. Common things to look out for:

I did not open this issue, but it is relevant to me, what can I do to help?

Anyone experiencing the same issue is welcome to provide a minimal reproduction following the above steps by opening a new issue.

I think my reproduction is good enough, why aren't you looking into it quickly?

We look into every issue and monitor open issues for new comments.

However, sometimes we might miss a few due to the popularity/high traffic of the repository. We apologize, and kindly ask you to refrain from tagging core maintainers, as that will usually not result in increased priority.

Upvoting issues to show your interest will help us prioritize and address them as quickly as possible. That said, every issue is important to us, and if an issue gets closed by accident, we encourage you to open a new one linking to the old issue and we will look into it.

Useful Resources