amplify-cli: `amplify init` always fails with `TypeError: Cannot read property 'Stacks' of null`
Describe the bug
When running amplify init it always throws TypeError: Cannot read property 'Stacks' of null with no clear way to proceed or fix it.
Amplify CLI Version 4.29.4
To Reproduce
- Create an empty directory.
- Run
amplify init - Select
iosas the type of the app.
Expected behavior
amplify init succeeds.
Screenshots

Desktop (please complete the following information):
- OS: macOS 10.15.7 (19H2)
- Node Version: v12.19.0
Additional context
This error was preceeded by https://github.com/aws-amplify/amplify-cli/issues/5509, but that one is no longer an issue for me as I don’t attempt to start amplify with npx here.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 1
- Comments: 17 (8 by maintainers)
Is this mentioned in the Amplify “Getting started” documentation anywhere? I’m following the steps exactly as they are specified in the documentation, so my assumption is that either documentation is up to date and all the steps will succeed as described in it, or errors will be shown that will direct me and clearly state what’s wrong and how to fix it.
Shouldn’t this document be directly linked from the “Getting started” and “Prerequisites” sections if following that document is required to get
amplify initto work?