微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

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

如何解决无法通过 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 举报,一经查实,本站将立刻删除。