Amplify-cli: [bug] Cannot read property 'directives' of undefined

Created on 24 Jan 2020  Â·  4Comments  Â·  Source: aws-amplify/amplify-cli

After upgrading from 4.12.0 to 4.13.0 - I receive the following error:

✖ An error occurred when pushing the resources to the cloud
Cannot read property 'directives' of undefined
An error occured during the push operation: Cannot read property 'directives' of undefined
bug graphql-transformer

Most helpful comment

Hello @amcdnl we are aware of this issue could you please try v4.13.1?

Closing this issue as the fix is addressed in v4.13.1 should you still experience a similar issue please comment below and we'll re-open this ticket.

All 4 comments

I'm getting this error as well when running amplify mock and deploying via amplify console with 4.13.0.

Hello @amcdnl we are aware of this issue could you please try v4.13.1?

Closing this issue as the fix is addressed in v4.13.1 should you still experience a similar issue please comment below and we'll re-open this ticket.

yup fixed it - thanks!

Hiii
Am getting same error while running amplify codegen models
amplify version = 4.21.3

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jexh picture jexh  Â·  3Comments

kangks picture kangks  Â·  3Comments

YikSanChan picture YikSanChan  Â·  3Comments

amlcodes picture amlcodes  Â·  3Comments

ReidWeb picture ReidWeb  Â·  3Comments