Skip to content

Next.js v15 Template Not Working with Amplify Gen 2 + Node.js 18 (EOL) #82

@raihanbrillmark

Description

@raihanbrillmark

"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, 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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions