generated from amazon-archives/__template_MIT-0
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Open
Description
"Next.js v15 Template Not Working with Amplify Gen 2 + Node.js 18 (EOL)"
Labels: [bug, framework:nextjs, amplify-gen2]
🐛 Bug Report
Summary
The default template for Next.js v15 is currently not working with Amplify Gen 2, and the environment appears to be using Node.js 18, which is now End-of-Life (EOL).
This causes build failures and incompatibility issues, particularly with modern dependencies that require newer Node.js versions (e.g., 20+).
Expected Behavior
Amplify Gen 2 should:
- Support the latest stable version of Next.js (v15)
- Use a non-EOL Node.js runtime (preferably Node.js 20 or higher)
- Offer an up-to-date template for Next.js that reflects current best practices
Current Behavior
- Amplify Gen 2 fails to build or deploy apps using Next.js v15
npm ciornpm installerrors due to unsupported or outdated dependencies- Lockfile errors (e.g., missing
@smithy/*packages) - Node.js 18 EOL leads to security and compatibility concerns
Steps to Reproduce
- Create a new Amplify Gen 2 app
- Use the default Next.js v15 template (or manually configure a project with Next.js v15)
- Deploy the app using
amplify publishor through the Amplify Console - Observe build failures and warnings related to Node.js runtime and npm dependency resolution
Suggested Fix
- Update Amplify Gen 2’s default Node.js runtime to Node.js 20+
- Provide an official Amplify Next.js v15 template compatible with the new runtime
- Document supported versions of Next.js and Node.js more clearly in the Amplify docs
Environment
- Framework: Next.js v15
- Amplify: Gen 2
- Node.js: 18 (EOL as of April 2025)
- Package manager: npm
- Hosting: Amplify Console / CI/CD
Additional Context
According to the official Node.js release schedule, Node.js 18 has reached end of life in April 2025, making its use problematic for new and existing apps.
Please let us know if there’s an expected timeline for Next.js v15 + Node.js 20 support in Amplify Gen 2.
Thanks for your continued work on Amplify!
Metadata
Metadata
Assignees
Labels
No labels