Amplify Init Error - ✖ Root stack creation failed init failed TypeError: Cannot redefine property: default

Amplify Init Error - ✖ Root stack creation failed init failed TypeError: Cannot redefine property: default

使用 amplify init,在选择要使用的配置文件后,我收到此错误并且不确定原因: ✖ 根堆栈创建失败 初始化失败 类型错误:无法重新定义 属性:默认

在这里找到解决方案! github issues

相关引用 - "I found the source of my problem... My ~/.aws/config file contained entries called [default] and [profile default], which causes the symptom."

所以我删除了 [default] 并保留了我的 [profile default] 然后放大初始化正常进行!

Amplify 希望您拥有一个具有 AdministrationFullAccess 的现有用户。这应该在 运行ning amplify init 之前确认,或者也许当您 运行 amplify init 时,系统会提示您是否您是否会使用默认的 AWS 配置文件。在这种情况下,您可能必须自己创建用户并将策略附加到用户,并将访问密钥和秘密密钥粘贴到控制台上的相应部分。但是当您按照步骤使用放大配置创建用户时,它是如此简单。