无法通过 Amplify 将 graphql 架构更改推送到 AWS 后端

问题描述

问题
我有 reactJS-app,它连接到 AppSync API(带 graphql)。
我最近对我的 schema.graphql 文件进行了更改,我想将其推送到后端(使用 amplify push)。当我尝试这样做时,我收到以下错误

Following resources Failed

× An error occurred when pushing the resources to the cloud

Resource is not in the state stackUpdateComplete
An error occurred during the push operation: Resource is not in the state stackUpdateComplete

到目前为止我尝试过的

amplify push
amplify configure project
amplify push
amplify api gql-compile
amplify push
amplify pull # so that I am in sync with the backend (then I update my changes to the schema.graphql file again...)
amplify push

额外信息
架构文件位于 .../react-project/amplify/backend/api/react-project/schema.graphql
我唯一改变的是将 @key 添加到表中。
我的放大/cli 版本是 4.45.0
我的节点版本是 v12.16.1
我的 npm 版本是 6.13.4

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)