aws-amplify / amplify-hosting

AWS Amplify Hosting provides a Git-based workflow for deploying and hosting fullstack serverless web applications.
https://aws.amazon.com/amplify/hosting/
Apache License 2.0
461 stars 116 forks source link

Amplify Gen-2 QuickStart doesn't work (Deployment failure due to failed build - logs attached) #3886

Closed gopinaath closed 10 months ago

gopinaath commented 11 months ago

Before opening, please confirm:

Amplify Hosting feature

Build settings

Is your feature request related to a problem? Please describe:

I have looked at this https://github.com/aws-amplify/amplify-hosting/issues/3884. While this is similar, we don't have any workarounds for Gen-2 to select build settings and images.

Nextjs 13 version works with Gen-2. However, Nextjs 14 app deployment fails due to build failure

# Starting phase: build

157

# Executing command: npm run build

158

2023-12-28T23:55:16.007Z [INFO]: > next-amplify-gen2@0.1.0 build

159

> next build

160

2023-12-28T23:55:16.061Z [WARNING]: You are using Node.js 18.13.0. For Next.js, Node.js version >= v18.17.0 is required.

161

2023-12-28T23:55:16.072Z [ERROR]: !!! Build failed

162

2023-12-28T23:55:16.072Z [INFO]: Please read more about Amplify Hosting's support for SSR frameworks to find if your build failure is related to an unsupported feature: https://docs.aws.amazon.com/amplify/latest/userguide/amplify-ssr-framework-support.html. You may also find this troubleshooting guide useful: https://docs.aws.amazon.com/amplify/latest/userguide/troubleshooting-ssr-deployment.html

163

2023-12-28T23:55:16.072Z [ERROR]: !!! Non-Zero Exit Code detected

164

2023-12-28T23:55:16.072Z [INFO]: # Starting environment caching...

165

2023-12-28T23:55:16.072Z [INFO]: # Environment caching completed

Describe how you'd like this feature to work

Successful build and deployment of amplify gen-2 application using nextjs 14.x

github-actions[bot] commented 11 months ago

This has been identified as a feature request. If this feature is important to you, we strongly encourage you to give a 👍 reaction on the request. This helps us prioritize new features most important to you. Thank you!

arundna commented 11 months ago

@gopinaath Thanks for reporting this issue! The relevant steps to update the build image for Gen 2 apps are updated in our documentation here - https://docs.amplify.aws/gen2/start/quickstart/#connect-branch-in-the-amplify-console. Let us know if this resolves your issues with build failures.

Also, this repository only accepts new feature requests for AWS Amplify Hosting. For technical support, we encourage you to open a case with AWS technical support if you have AWS support plan. If you do not have an active AWS support plan, we encourage you to leverage our Amplify community Discord server where community members and staff try to help each other with Amplify.

arundna commented 10 months ago

Closing the issue with the updates to the documentation above

github-actions[bot] commented 10 months ago

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see. If you need more assistance, please open a new issue that references this one.

github-actions[bot] commented 10 months ago

This issue has been automatically locked.