Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
3 tasks done
gopinaath opened this issue Dec 30, 2023 · 5 comments
Closed
3 tasks done
Labels
archived This issue has been locked. bug Something isn't working

Comments

@gopinaath
Copy link

Before opening, please confirm:

Amplify Hosting feature

Build settings

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

I have looked at this #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]: > [email protected] 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

@gopinaath gopinaath added the feature-request New feature or request label Dec 30, 2023
Copy link

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!

@renebrandel renebrandel added bug Something isn't working and removed feature-request New feature or request labels Jan 1, 2024
@arundna
Copy link
Member

arundna commented Jan 3, 2024

@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
Copy link
Member

arundna commented Jan 4, 2024

Closing the issue with the updates to the documentation above

@arundna arundna closed this as completed Jan 4, 2024
Copy link

github-actions bot commented Jan 4, 2024

⚠️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.

Copy link

github-actions bot commented Jan 4, 2024

This issue has been automatically locked.

@github-actions github-actions bot added the archived This issue has been locked. label Jan 4, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Jan 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
archived This issue has been locked. bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants