Amplify-cli: innerDiffs is not iterable

Created on 25 Oct 2020  Â·  3Comments  Â·  Source: aws-amplify/amplify-cli

✖ An error occurred when pushing the resources to the cloud

innerDiffs is not iterable
There was an error pushing the API resource
TypeError: innerDiffs is not iterable

Describe the bug
I got this message on the CLI when I try to push a change in my graphQL schema. I had made the last changes day before yesterday and all seemed to be good.

EDIT: I also enabled Point in time recovery in Dynamodb in some of my tables. I didn't think it could have an effect on amplify. Could it be the cause of all this ?

Amplify CLI Version
4.27.1

To Reproduce
Just try to push changes in the graphQL schema with amplify api push

Expected behavior
Update the schema accordingly.

Desktop (please complete the following information):

  • OS:Mac
  • Node Version. v10.16.3
bug graphql-transformer

All 3 comments

I finally went with amplify pull and back to business.

Still, I'd really like to know what this innerDiffs error stands for.

Thanks in advance for your reply.

@philohelp Hard to say exactly what went wrong, but the innerDiff variable is referenced here. Based on the docs for deep-diff I would guess that a diff was coming back as undefined and causing the error you saw.

The fix for this has been released in CLI v 4.32.0

Was this page helpful?
0 / 5 - 0 ratings