-
Notifications
You must be signed in to change notification settings - Fork 820
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
An error occurred during the push operation: Cannot read properties of undefined (reading 'length') #13981
Comments
Hey @Paulo-Ferreira-SJ, could you try adding |
Hi @ykethan! Learn more at: https://docs.amplify.aws/cli/project/troubleshooting/
|
Hey @Paulo-Ferreira-SJ, thank you for the information. From the stack trace, it appears the error occurred on a API gateway resource. amplify-cli/packages/amplify-provider-awscloudformation/src/utils/consolidate-apigw-policies.ts Line 157 in 265726d
From the stack trace it appears there are several updates on resources including a API resource. Could you let us know the changes made on the resource or any reproduction steps to reproduce the issue. |
Hey @ykethan. I'm updating my AWS amplify functions Lambda from using aws-sdk v2 to v3. There are really many changes. But from the stack trace, I couldn't identify what is wrong. Could you tell me which file it is trying to read and extract these parameters from? |
Hey @Paulo-Ferreira-SJ, I would suggest running |
Closing the issue due to inactivity. Do reach out to us if you are still experiencing this issue |
This issue is now closed. Comments on closed issues are hard for our team to see. |
How did you install the Amplify CLI?
npm
If applicable, what version of Node.js are you using?
18.17.1
Amplify CLI Version
@aws-amplify/[email protected]
What operating system are you using?
Ubuntu
Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.
No manual changes made
Describe the bug
I received the message: Cannot read properties of undefined (reading 'length')
Expected behavior
Deploy the amplify app
Reproduction steps
amplify push
Project Identifier
No response
Log output
Additional information
Session Identifier: 290b8a44-fd38-4bc0-b5ee-cdbeb1eb4c4b
After consulting other issues, in a similar unresolved problem, there was a suggestion to use version 14.x of Node. I tested it, and the same error occurred.
Before submitting, please confirm:
The text was updated successfully, but these errors were encountered: