Amplify push, status and env Cannot read property 'forEach' of undefined TypeError: Cannot read property 'forEach' of undefined - amplify-cli
Describe the bug amplify status -> Cannot read property 'forEach' of undefined TypeError: Cannot read property 'forEach' of undefined at AmplifyToolkit.showHelpfulProviderLinks show-helpful-provider-links.js:12:15
amplify env checkout
amplify pull --restore Cannot read property 'forEach' of undefined TypeError: Cannot read property 'forEach' of undefined initialize-env.js:49:49
all amplify commands seem to fail when reading providers.forEach. For backend, our project has auth, storage and api
Amplify CLI Version amplify -v -> 4.43.0
To Reproduce any env related amplify command
Desktop (please complete the following information):
- OS: Windows
- Node Version. v10.15.3
4 Answer:
@sanjaykataria10 Could you answer the following
1. Is Amplify CLI installed gloablly (using npm install -g @aws-amplify/cli
)
2. Is this project created in a different machine
3. Could you share the content of <proj-root>/amplify/.config/project-config.json
.
@yuth
- Amplify CLI installed globally
- project was created in my m/c but I have other developers working on it
- here is the project config on my local. { "version": "3.0" } when reviewing on github looks like this file was deleted by a dev. (prev contents below) { "providers": [ "awscloudformation" ], "projectName": "amplify-jobs-app", "version": "3.0", "frontend": "javascript", "javascript": { "framework": "react", "config": { "SourceDir": "src", "DistributionDir": "build", "BuildCommand": "npm.cmd run-script build", "StartCommand": "npm.cmd run-script start" } } }
Thanks.
I have restored the project-config and am able to run amplify env commands. Thanks !
This issue has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs.
Looking for a help forum? We recommend joining the Amplify Community Discord server *-help
channels for those types of questions.
Read next
- sdk RFC: dotnet [Arm64 | x64] coexistence - Csharp
- A | B != B | A - cats-parse
- 1882 - Player 1 has 13/14 certificates, but cannot purchase a share. - 18xx
- truffle Debugger Fails Cryptically: Error: Compilation shimmedcompilation has unreliable source order - JavaScript
- Getting `message failed` on uploading more than 10 images - stream-chat-react-native
- mdx Missing typings and typescript files from `@mdx-js/mdx` - JavaScript
- Change OTLP gRPC port number - agent
- keras TensorBoard write_grads prevents training from starting - Python