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

"Invalid feature flag configuration" error message when running the amplify CLI #4561

Closed
manu2504 opened this issue Sep 3, 2022 · 1 comment

Comments

@manu2504
Copy link

manu2504 commented Sep 3, 2022

Describe the bug
Whatever option I'm providing to the amplify CLI when I run it, it exits with the following error message:

$ amplify -v
Invalid feature flag configuration

These feature flags are defined in the "amplify/cli.json" configuration file and are unknown to the currently running Amplify CLI:
  - latestregionsupport
  - project
  - graphqltransformer.improvepluralization
  - graphqltransformer.transformerversion
  - graphqltransformer.suppressschemamigrationprompt
  - graphqltransformer.securityenhancementnotification
  - graphqltransformer.showfieldauthnotification
  - auth.forcealiasattributes
  - auth.useenabledmfas
  - codegen.enabledartnullsafety

This issue likely happens when the project has been pushed with a newer version of Amplify CLI, try updating to a newer version.

Learn more about feature flags: https://docs.amplify.aws/cli/reference/feature-flags

(Same error when running amplify (without option), amplify pull --appId xxxx --envName yyyy).

To Reproduce
No clue...

Expected behavior
Amplify CLI should return the current amplify version when I run amplify -v. Potentially with additional warning if necessary.

Desktop (please complete the following information):

  • OS: macOS

Additional context
Using:

  • node v12 and npm v6
  • @aws-amplify/cli@9.2.1

(Same issue with node v14 and npm v6.)

@manu2504
Copy link
Author

manu2504 commented Sep 3, 2022

Closing as duplicate of aws-amplify/amplify-cli#10514

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant