Amplify-cli: amplify pull error: Cannot read property 'defaultProject' of undefined

Created on 23 Dec 2020  Â·  3Comments  Â·  Source: aws-amplify/amplify-cli

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):

  • OS: Windows 10
  • Node Version: 14.15.3
bug platform

Most helpful comment

Thanks for the unblocking instructions. Very helpful.

All 3 comments

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ReidWeb picture ReidWeb  Â·  3Comments

davo301 picture davo301  Â·  3Comments

onlybakam picture onlybakam  Â·  3Comments

jexh picture jexh  Â·  3Comments

kangks picture kangks  Â·  3Comments