aws-samples / aws-samples/amplify-next-template
Next.js v15 Template Not Working with Amplify Gen 2 + Node.js 18 (EOL)
- Dominant language
- CSS
- Stars
- 236
- Forks
- 3.2k
- PR merge metrics
- No merged PRs in 30d
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 ci` or `npm install` errors 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
1. Create a new Amplify Gen 2 app
2. Use the default Next.js v15 template (or manually configure a project with Next.js v15)
3. Deploy the app using `amplify publish` or through the Amplify Console
4. 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](https://nodejs.org/en/about/releases/), 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!
Contributor guide
Assessment
This issue has not been assessed yet.