Skip to content

peerdependcy conflict next-auth V4.24.12 #13313

@DarkNasuada

Description

@DarkNasuada

Environment

  System:
    OS: Windows 11 10.0.22621
    CPU: (8) x64 AMD Ryzen 5 2400G with Radeon Vega Graphics
    Memory: 15.69 GB / 30.93 GB
  Binaries:
    Node: 25.1.0 - C:\Program Files\nodejs\node.EXE
    npm: 11.6.1 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Chrome: 141.0.7390.123
    Edge: Chromium (141.0.3537.85)
    Internet Explorer: 11.0.22621.3527
  npmPackages:
    next: ^15.3.1 => 15.5.6
    next-auth: ^4.24.11 => 4.24.11
    react: ^19.1.1 => 19.2.0

Reproduction URL

https://github.com/DarkNasuada/example

Describe the issue

When running npm i update it gives an peer dependency conflict on nodemailer:

npm error code ERESOLVE
npm error ERESOLVE unable to resolve dependency tree
npm error
npm error While resolving: [email protected]
npm error Found: [email protected]
npm error node_modules/nodemailer
npm error peerOptional nodemailer@"^6.8.0" from @auth/[email protected]
npm error node_modules/@auth/core
npm error peerOptional @auth/core@"0.34.2" from [email protected]
npm error node_modules/next-auth
npm error next-auth@"" from the root project
npm error
npm error Could not resolve dependency:
npm error peerOptional nodemailer@"^7.0.7" from [email protected]
npm error node_modules/next-auth
npm error next-auth@"" 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.

Looks to me that takes an old auth/core version when updating.

Tried to install using npm i next-auth@latest aswell but this gives the same error message.

How to reproduce

npm i next-auth

Expected behavior

version upate without dependency conflict

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriageUnseen or unconfirmed by a maintainer yet. Provide extra information in the meantime.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions