`amplify init` always fails with `TypeError: Cannot read property 'Stacks' of null`
See original GitHub issueDescribe 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
ios
as 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.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:17 (8 by maintainers)
Top Results From Across the Web
TypeError: Cannot read property 'projectPath' of undefined ...
As I am new to amplify I'm not sure it completely fixes any problem that was created, but it appears to allow me...
Read more >Troubleshoot CloudFormation stack issues in AWS Amplify
When I try to deploy my AWS Amplify application, I receive an AWS CloudFormation error similar to the following: "Resource is not in...
Read more >AWS-Amplify/Lobby - Gitter
in the console I get: Uncaught (in promise) TypeError: Cannot read property 'props' of undefined at t.value (ToolbarSelect.js:203). does anyone solve that?
Read more >cannot read properties of undefined (reading 'auth') - You.com
Firebase App (the core Firebase SDK) is always required and must be listed first import firebase from "firebase/app"; // If you are using...
Read more >How to prevent cannot read property split of undefined
The error "Cannot read property split of undefined" can occur when performing any of these types of operations if the variable is undefined....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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 init
to work?I’m having the same issue