Skip to content
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

Amplify codegen statements: Code generation failed with the following error, Syntax Error. #866

Open
2 tasks done
pr1ze opened this issue Aug 14, 2024 · 1 comment
Open
2 tasks done
Labels
question Further information is requested transferred Issue has been transferred from another Amplify repository

Comments

@pr1ze
Copy link

pr1ze commented Aug 14, 2024

How did you install the Amplify CLI?

amplify upgrade

If applicable, what version of Node.js are you using?

v22.5.1

Amplify CLI Version

12.12.6

What operating system are you using?

Windows

Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.

No

Describe the bug

$ amplify codegen statements
Gives:
Syntax Error: Expected Name, found ( (8:3)
6 | {
7 |

8 | (
| ^
9 | id:$id
10 | )
11 |

Expected behavior

Would expect my graphql to be generated.

Reproduction steps

I am not sure how to reproduce it.
If i downgrade amplify cli to 12.1.1, it works.

Project Identifier

Project Identifier: d0c03f8456bda12e4303d69ff6534384

Log output

No logs are written.

Additional information

No response

Before submitting, please confirm:

  • I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
  • I have removed any sensitive information from my code snippets and submission.
@pr1ze pr1ze added the pending-triage Issues that need further discussion to determine label Aug 14, 2024
@ykethan
Copy link
Member

ykethan commented Aug 16, 2024

Hey, thanks for raising this! I'm going to transfer this over to our codegen repository for better assistance

@ykethan ykethan added the transferred Issue has been transferred from another Amplify repository label Aug 16, 2024
@ykethan ykethan transferred this issue from aws-amplify/amplify-cli Aug 16, 2024
@phani-srikar phani-srikar added question Further information is requested and removed pending-triage Issues that need further discussion to determine labels Aug 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested transferred Issue has been transferred from another Amplify repository
Projects
None yet
Development

No branches or pull requests

3 participants