Don_Huan
Don_Huan

Reputation: 85

AWS full-stack react app. Build failed to complete successfully

I'm trying to make an SPA in React with AWS.

While I was going through the basic steps here (Step 3 ADD AUTHENTICATION ) :

I deployed the changes to the live environment, but the build failed.

I'm getting this error.

enter image description here

Can anyone please explain to me what caused this error?

Upvotes: 0

Views: 2134

Answers (2)

code13689
code13689

Reputation: 1

Other than checking for version matching, I also have found out if amplify backend doesn't have a role attached to it, the built process is going to fail. to do that you follow the link bellow directions: https://docs.aws.amazon.com/amplify/latest/userguide/how-to-service-role-amplify-console.html However, before that, go to the General tab under App settings to see if the role is empty or not. You might already have a role, if not follow that link.

Upvotes: 0

Alex
Alex

Reputation: 842

This seems to be a known issue in the Amplify GitHub and can happen when the Amplify CLI version used by the Amplify Console is mismatched with the version you are using locally. Here is some more information: https://github.com/aws-amplify/amplify-cli/issues/6117#issuecomment-794176834

Compare your Amplify App -> Build Settings -> Build image settings -> Amplify CLI version with your version installed on your development machine by running amplify --version

Upvotes: 4

Related Questions