[GH-ISSUE #6468] Cannot upgrade to 1.4.4 from 1.4 beta because 1.4.4 requires next 15 #27847

Closed
opened 2026-04-17 19:04:48 -05:00 by GiteaMirror · 4 comments
Owner

Originally created by @realtebo on GitHub (Dec 2, 2025).
Original GitHub issue: https://github.com/better-auth/better-auth/issues/6468

Currently I'm using

"better-auth": "^1.4.0-beta.20",
...
"next": "16.0.1",

I tried upgrade to 1.4.4 but I looks like I cannot due to requirements for next 14 || 15, but not allowed on next 16

% npm i better-auth
npm error code ERESOLVE
npm error ERESOLVE could not resolve
npm error
npm error While resolving: better-auth@1.4.4
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 peerOptional next@"^14.0.0 || ^15.0.0" from better-auth@1.4.4
npm error node_modules/better-auth
npm error   better-auth@"^1.4.0-beta.20" from the root project
npm error
npm error Conflicting peer dependency: next@15.5.6
npm error node_modules/next
npm error   peerOptional next@"^14.0.0 || ^15.0.0" from better-auth@1.4.4
npm error   node_modules/better-auth
npm error     better-auth@"^1.4.0-beta.20" from the root project
Originally created by @realtebo on GitHub (Dec 2, 2025). Original GitHub issue: https://github.com/better-auth/better-auth/issues/6468 Currently I'm using ``` "better-auth": "^1.4.0-beta.20", ... "next": "16.0.1", ``` I tried upgrade to 1.4.4 but I looks like I cannot due to requirements for next 14 || 15, but not allowed on next 16 ``` % npm i better-auth npm error code ERESOLVE npm error ERESOLVE could not resolve npm error npm error While resolving: better-auth@1.4.4 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 peerOptional next@"^14.0.0 || ^15.0.0" from better-auth@1.4.4 npm error node_modules/better-auth npm error better-auth@"^1.4.0-beta.20" from the root project npm error npm error Conflicting peer dependency: next@15.5.6 npm error node_modules/next npm error peerOptional next@"^14.0.0 || ^15.0.0" from better-auth@1.4.4 npm error node_modules/better-auth npm error better-auth@"^1.4.0-beta.20" from the root project ```
GiteaMirror added the locked label 2026-04-17 19:04:49 -05:00
Author
Owner

@better-auth-agent[bot] commented on GitHub (Dec 2, 2025):

Hi there! It looks like the upgrade error occurs because the latest stable release (v1.4.4) explicitly requires Next.js versions within the range 14 or 15, while your project is using Next.js 16. This peer dependency constraint is causing the installation to fail.

To resolve the issue you have a few options:
• Downgrade Next.js to a supported version (15.x) so that the peer dependency matches.
• Wait for an upcoming release of Better Auth that expands its peer dependency support to Next.js 16.
• If you’re comfortable with it, you might force the installation (using npm’s legacy peer dependency resolution flag or similar), but be aware this could lead to unpredictable behavior.

Are you leaning toward downgrading Next.js, or would you like to discuss alternative approaches? Tag @better-auth-agent if you would like an answer from the Agent.

If you need more help, tag @Skyvern in a comment so I can respond.

DiagramDiscordGitHub

Diagram Join Star

<!-- gh-comment-id:3600919876 --> @better-auth-agent[bot] commented on GitHub (Dec 2, 2025): Hi there! It looks like the upgrade error occurs because the latest stable release (v1.4.4) explicitly requires Next.js versions within the range 14 or 15, while your project is using Next.js 16. This peer dependency constraint is causing the installation to fail. To resolve the issue you have a few options: • Downgrade Next.js to a supported version (15.x) so that the peer dependency matches. • Wait for an upcoming release of Better Auth that expands its peer dependency support to Next.js 16. • If you’re comfortable with it, you might force the installation (using npm’s legacy peer dependency resolution flag or similar), but be aware this could lead to unpredictable behavior. Are you leaning toward downgrading Next.js, or would you like to discuss alternative approaches? Tag @better-auth-agent if you would like an answer from the Agent. _If you need more help, tag @Skyvern in a comment so I can respond._ <!-- bot:webhook reply v1 --> [Diagram](https://repodiagrams.s3.eu-north-1.amazonaws.com/skyvern_ultra_detailed_interactive.html) • [Discord](https://discord.gg/fG2XXEuQX3) • [GitHub](https://github.com/Skyvern-AI/Skyvern) [![Diagram](https://img.shields.io/badge/Diagram-2b3137?style=flat-square)](https://repodiagrams.s3.eu-north-1.amazonaws.com/skyvern_ultra_detailed_interactive.html) [![Join](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&style=flat-square)](https://discord.gg/fG2XXEuQX3) [![Star](https://img.shields.io/badge/star-181717?logo=github&logoColor=white&style=flat-square)](https://github.com/Skyvern-AI/Skyvern)
Author
Owner

@jslno commented on GitHub (Dec 2, 2025):

duplicate #6439

<!-- gh-comment-id:3603573948 --> @jslno commented on GitHub (Dec 2, 2025): duplicate #6439
Author
Owner

@himself65 commented on GitHub (Dec 2, 2025):

Please try v1.4.5-beta.1

<!-- gh-comment-id:3603712880 --> @himself65 commented on GitHub (Dec 2, 2025): Please try v1.4.5-beta.1
Author
Owner

@realtebo commented on GitHub (Dec 3, 2025):

Fixed in 1.4.5 stable

<!-- gh-comment-id:3606924618 --> @realtebo commented on GitHub (Dec 3, 2025): Fixed in 1.4.5 stable
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#27847