'@aws-amplify/cli' 10.1.0 Breaks build
Before opening, please confirm:
- [X] I have installed the latest version of the Amplify CLI (see above), and confirmed that the issue still persists.
- [X] I have searched for duplicate or closed issues.
- [X] I have read the guide for submitting bug reports.
- [X] I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
- [X] I have removed any sensitive information from my code snippets and submission.
How did you install the Amplify CLI?
npm
If applicable, what version of Node.js are you using?
No response
Amplify CLI Version
10.1.0
What operating system are you using?
Amplify build
Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.
No
Amplify Categories
Not applicable
Amplify Commands
push
Describe the bug
Trying to make a build in the Amplify console fails with amplify cli 10.1.0
There was an error initializing your environment. [31mFailed to pull the backend.[39m 🛑 Unable to parse aws-exports.js. Has this file been modified? Resolution: Please report this issue at https://github.com/aws-amplify/amplify-cli/issues and include the project identifier from: 'amplify diagnose --send-report' Learn more at: https://docs.amplify.aws/cli/project/troubleshooting/ !!! Build failed !!! Non-Zero Exit Code detected
Expected behavior
Build works
Reproduction steps
Create a new build via a pull request and have the Amplify build system amplifyPush --simple
GraphQL schema(s)
No response
Project Identifier
No response
Log output
There was an error initializing your environment. [31mFailed to pull the backend.[39m 🛑 Unable to parse aws-exports.js. Has this file been modified? Resolution: Please report this issue at https://github.com/aws-amplify/amplify-cli/issues and include the project identifier from: 'amplify diagnose --send-report' Learn more at: https://docs.amplify.aws/cli/project/troubleshooting/ !!! Build failed !!! Non-Zero Exit Code detected
Additional information
No response
We're sorry about this inconvenience. We have pointed latest back to 10.0.0.
hey @AustinAmoruso, in addition to @sobolk update. please do let us know if building the application in 10.0.0 mitigates the issue.
I was able to deploy with 10.0.0
hey @AustinAmoruso, thank you for the update. apologies for the inconvenience. I will be closing the issue, please do reach out to us if you are experiencing any issues.
@AustinAmoruso could you share some details about your app layout? I.e. what kind of app is this? (js, react, android, ios, flutter etc.), which amplify components are you using (i.e. which categories and libraries)?
Could you also confirm that aws-exports.js is NOT checked into your git repository?
Hey @AustinAmoruso and @mate2 :wave: to add on to @sobolk 's note above, would you mind sending us the App ID and region of your Amplify app?
Do you also experience this issue locally after manually installing the CLI using the 10.1.0 tag? yarn global add @aws-amplify/[email protected]
Closing as issue has been fixed 🙂