Describe the bug
When attempting to pull a newly created project via amplify pull, the command fails.
amplify pull --appId redacted --envName staging
Opening link: https://us-east-1.admin.redacted.com/admin/redacted/staging/verify/
√ Successfully received Amplify Admin tokens.
Amplify AppID found: redacted. Amplify App name is: redacted
Backend environment staging found in Amplify Console app: redacted
Failed to pull the backend.
Cannot read property 'defaultProject' of undefined
TypeError: Cannot read property 'defaultProject' of undefined
at getAngularConfig (C:\snapshot\node_modules\amplify-frontend-javascript\lib\framework-config-mapping.js:61:39)
Amplify CLI Version
4.40.1
Expected behavior
No errors.
Desktop (please complete the following information):
Hi @9037568, thanks for the bug report! I was able to reproduce it.
To get unblocked, you can run the following:
npx -p @angular/cli ng new <root-of-project>
cd <root-of-project>
amplify pull --appId redacted --envName staging
See the docs for more information.
Thanks for the unblocking instructions. Very helpful.
Most helpful comment
Thanks for the unblocking instructions. Very helpful.