amplify-cli: Can't `amplify push` 'cannot read join property of null' error

Note: If your issue/bug is regarding the AWS Amplify Console service, please log it in the Amplify Console GitHub Issue Tracker

Describe the bug I basically added a couple of cognito hooks and tried to amplify push my changes and I get the following error: “An error occurred when pushing the resources to the cloud Cannot read property ‘join’ of null. An error occurred during the push operation: Cannot read property ‘join’ of null” see this: https://imgur.com/a/qTydLGM

Amplify CLI Version Amplify version: 4.18.0

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 17 (2 by maintainers)

Most upvoted comments

Turned out I had some old lambda references in the Amplify config files. Something was missed when I removed the lambda I guess. Manually removing the references put me in the clear.

Turned out I had some old lambda references in the Amplify config files. Something was missed when I removed the lambda I guess. Manually removing the references put me in the clear.

yes. For me it was the issue as well. backend-config.json had references to non existing lambdas! Thanks a lot !

I’m getting this exact message. After an attempt at merging new work from a feature branch/env … back to the the dev branch/env:

# from feature branch/env
amplify env checkout devenv
amplify push
git add .
git commit ...
# other dev working on branch
amplify pull 
# resolve some regressions b/c amplify and git ... 
amplify status
# looks good ... changes to push
amplify push
? Are you sure you want to continue? Yes
✖ An error occurred when pushing the resources to the cloud

Cannot read property 'join' of null
An error occurred during the push operation: Cannot read property 'join' of null