Open undefobj opened 5 years ago
Added to our backlog
Update, the current CLI (10.4.1) prints out an error looking for amplify-meta.json
which does not exist when the project is not initialized locally.
π File at path: '/Users/josef/Documents/projects/aws-amplify/reproductions/authtest/amplify/backend/amplify-meta.json' does not exist
steps to reproduce
amplify init -y
git init; git clean -fXd
amplify add x
a1268 on ξ main
β amplify add function
π File at path: '/Users/josef/Documents/projects/aws-amplify/reproductions/a1268/amplify/.config/local-env-info.json' does not exist
Resolution: Please report this issue at https://github.com/aws-amplify/amplify-cli/issues and include the project identifier from: 'amplify diagnose --send-report'
Learn more at: https://docs.amplify.aws/cli/project/troubleshooting/
Session Identifier: 2fe425ff-c8e5-454d-8040-cac3bb9dbb90
β An unexpected error has occurred, opt in to send an error report to AWS Amplify with non-sensitive project configuration files. Confirm (y/N) Β·
π Failed to report error:
a1268 on ξ main
β amplify add auth
Using service: Cognito, provided by: awscloudformation
π Current environment cannot be determined.
Resolution: Use 'amplify init' in the root of your app directory to create a new environment.
Learn more at: https://docs.amplify.aws/cli/project/troubleshooting/
Session Identifier: 08d2cec5-7ff2-4bf9-aaae-1398a4f23a40
β An unexpected error has occurred, opt in to send an error report to AWS Amplify with non-sensitive project configuration files. Confirm (y/N) Β·
π Failed to report error:
a1268 on ξ main
β amplify add api
? Select from one of the below mentioned services: GraphQL
π There was an error adding the API resource
π File at path: '/Users/josef/Documents/projects/aws-amplify/reproductions/a1268/amplify/backend/amplify-meta.json' does not exist
a1268 on ξ main
β amplify env add next --yes
π Your workspace is not configured to modify the backend.
Resolution: If you wish to change this configuration, remove your `amplify` directory and pull the project again.
Learn more at: https://docs.amplify.aws/cli/project/troubleshooting/
Session Identifier: 2f350b12-7525-49bd-a91b-d2afadcaa39c
If I do
amplify add xxx
in a project which hasn't been initialized we currently spit out an ugly trace:Why don't we either: