Update @aws-amplify/adapter-nextjs
to Support [email protected]
for Seamless Installation
#14055
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
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[email protected]
. 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.
Install the @aws-amplify/adapter-nextjs package:
Observe the following error:
Describe the solution you'd like
Update the @aws-amplify/adapter-nextjs peer dependency to accept [email protected] 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:
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 [email protected] 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?
The text was updated successfully, but these errors were encountered: