-
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
Error when running amplify codegen add #50
Comments
Another note, this is after creating & deleting another GraphQL API using the Amplify CLI. I.e. I created an API, removed it using |
Did you push the new API to the cloud? |
@kaustavghosh06 yes, this was after pushing & creating the API. Also, I just tried on a brand new API & had the same failure so it wasn't any previous configuration that was causing the issue. |
@dabit3 Does |
@dabit3 I couldn't reproduce the issue after initializing a new project. Here's my flow and please let me know if you did anything different.
|
@dabit3 I hit that issue yesterday but didn't open up an issue, here's how I reproduced:
Reason being is that the file |
I will add a check in the codegen if the API still available and generate code iff its not deleted. Long term solution to this would be to listen to API |
+1 on @heitorlessa comment. This error went away after removing the |
Fix(aws-amplify/amplify-cli) #50 Check if the API exists during codegen
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 |
Do you want to request a feature or report a bug?
bug
What is the current behavior?
Error is thrown:
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.
Steps to reproduce the issue:
What is the expected behavior?
Typed API.ts is created with no error
What is actual behavior?
Typed API.ts file gets created with the following (but above error is thrown):
Additional environment details
Mac OS Sierra 10.12.6
amplify --version
:0.1.14
Not sure
The text was updated successfully, but these errors were encountered: