Amplify Invalid feature flag configuration on build

Question:

I am doing the walkthrough for building a full stack app with Amplify and am stuck on the third module, adding auth. I followed all the instructions to a T but my build is failing saying there are invalid feature flags like so.

Here is my amplify/cli.json

I updated node, aws-amplify, and amplify all to the newest versions. What is the problem here?

Answer:

It seems to be a different version of amplify cli between the aws build image and your machine.

Check your version of amplify cli :

And override the version of amplify CLI in the build image :
AWS Amplify console -> Build Settings -> Build Image Settings -> Live package updates -> Amplify CLI

enter image description here

Leave a Reply