Skip to content
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

Update @aws-amplify/adapter-nextjs to Support next@15.x for Seamless Installation #14055

Closed
2 tasks
mgmgpyaesonewin opened this issue Dec 5, 2024 · 1 comment
Closed
2 tasks
Labels
Core Related to core Amplify issues duplicate If marked with duplicate, issue will be closed & original will be added for traceability feature-request Request a new feature Next.js

Comments

@mgmgpyaesonewin
Copy link

mgmgpyaesonewin commented Dec 5, 2024

Is this related to a new or existing framework?

Next.js

Is this related to a new or existing API?

Authentication

Is this related to another service?

No response

Describe the feature you'd like to request

Please update the @aws-amplify/adapter-nextjs package to support next@15.0.3. Currently, the package's peer dependency restricts compatibility to versions <15.0.0. Since the changes from 15.0.0 to 15.0.3 are minor, compatibility should be feasible. Updating this dependency will allow users to integrate the adapter with the latest Next.js version without dependency resolution issues.

Steps to Reproduce:

Create a new project with Next.js version 15.0.3.

npx create-next-app@latest

Install the @aws-amplify/adapter-nextjs package:

npm install @aws-amplify/adapter-nextjs

Observe the following error:

npm ERR! code ERESOLVE  
npm ERR! ERESOLVE unable to resolve dependency tree  
npm ERR!  
npm ERR! While resolving: evp-config-gen@0.1.0  
npm ERR! Found: next@15.0.3  
npm ERR! node_modules/next  
npm ERR!   next@"15.0.3" from the root project  
npm ERR!  
npm ERR! Could not resolve dependency:  
npm ERR! peer next@">=13.5.0 <15.0.0" from @aws-amplify/adapter-nextjs@1.2.32

Describe the solution you'd like

Update the @aws-amplify/adapter-nextjs peer dependency to accept next@15.x versions, or at least test and validate compatibility with 15.0.x. This will resolve the dependency tree issues and allow users to leverage the latest features and updates of Next.js.

Describe alternatives you've considered

As a temporary workaround, the package can be installed using the --force flag:

npm install @aws-amplify/adapter-nextjs --force

However, this is not an ideal solution. Using --force overrides the dependency resolution, which may introduce potential issues or incompatibilities in the project.

The package should be updated to allow seamless installation without the need for forcing, ensuring compatibility with next@15.x versions. This would provide a more reliable and user-friendly experience while avoiding risks associated with overriding peer dependency constraints.

Additional context

This issue blocks the adoption of the latest Next.js versions for projects relying on @aws-amplify/adapter-nextjs, hindering access to new features and optimizations in Next.js 15.x. If compatibility concerns exist, consider providing an alpha or beta release for users to test and provide feedback.

Is this something that you'd be interested in working on?

  • 👋 I may be able to implement this feature request
  • ⚠️ This feature might incur a breaking change
@github-actions github-actions bot added pending-triage Issue is pending triage pending-maintainer-response Issue is pending a response from the Amplify team. labels Dec 5, 2024
@jjarvisp jjarvisp added duplicate If marked with duplicate, issue will be closed & original will be added for traceability feature-request Request a new feature Core Related to core Amplify issues Next.js and removed pending-triage Issue is pending triage labels Dec 5, 2024
@jjarvisp
Copy link
Member

jjarvisp commented Dec 5, 2024

Hey @mgmgpyaesonewin! Thanks for opening this issue. We are currently working towards providing support for Next.js 15 in Amplify JS and have released a tagged version for testing. You can install with

npm install aws-amplify@next-15 @aws-amplify/adapter-nextjs@next-15

We will be working to finalize this update and should have a stable release in the near future.

As we are currently tracking support for Next.js 15 in issue #13924, I will close this one as a duplicate. Please follow that issue for any new updates, thank you!

@jjarvisp jjarvisp closed this as not planned Won't fix, can't repro, duplicate, stale Dec 5, 2024
@github-actions github-actions bot removed the pending-maintainer-response Issue is pending a response from the Amplify team. label Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Core Related to core Amplify issues duplicate If marked with duplicate, issue will be closed & original will be added for traceability feature-request Request a new feature Next.js
Projects
None yet
Development

No branches or pull requests

2 participants