Reputation: 607
Is there a way to resolve this issue without deleting the project's amplify directory and beginning from scratch?
Steps to reproduce:
nvm install 10.17
)npm i -g @aws-amplify/[email protected]
)amplify init
and choose existing environment)amplify push
)Resulting error:
✖ An error occurred when pushing the resources to the cloud
Cannot read property 'extensions' of null An error occured during the push operation: Cannot read property 'extensions' of null
Upvotes: 2
Views: 2673
Reputation: 607
A project root file named .graphqlconfig.yml
was causing the error:
projects:
myappname:
schemaPath: src/graphql/schema.json
excludes:
- ./amplify/**
extensions:
amplify:
graphQLApiId: xxxxxxxxxxxxxxxxxxxxxxxxxx
endpoints:
prod: >-
https://xxxxxxxxxxxxxxxxxxxxxxxxxx.appsync-api.us-west-2.amazonaws.com/graphql
in our case, we installed Node version 12.13.1, used Amplify CLI version 4.4.0, and deleted the file. Then amplify push
succeeded.
Upvotes: 1