【问题标题】:AWS Amplify Console command returns "Cannot read property 'awscloudformation' of undefined"AWS Amplify 控制台命令返回“无法读取未定义的属性 'awscloudformation'”
【发布时间】:2021-08-29 17:40:56
【问题描述】:

我正在使用 AWS Amplify-CLI 尝试从项目的根目录启动 Amplify 控制台。我输入以下内容:

> amplify console

并得到以下错误:

Cannot read property 'awscloudformation' of undefined

【问题讨论】:

    标签: amazon-web-services aws-amplify amplify aws-amplify-cli


    【解决方案1】:

    我有两个 Amplify 环境:test 和 prod。在 git 中,我已经从 test 分支切换到 prod。但是,似乎 Amplify(当前版本:5.3.1)并没有意识到这一点。相反,您会收到上述无用的错误消息。

    我在这个 github 问题的帮助下解决了这个问题:https://github.com/aws-amplify/amplify-cli/issues/1734#issuecomment-506435290

    运行amplify env checkout prod 后,我就可以像以前一样启动控制台了。

    【讨论】:

      猜你喜欢
      • 2023-02-01
      • 2020-08-16
      • 1970-01-01
      • 1970-01-01
      • 2021-12-15
      • 2018-11-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多