amplify-codegen icon indicating copy to clipboard operation
amplify-codegen copied to clipboard

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

Open pr1ze opened this issue 1 year ago • 1 comments

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:

  • [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.

pr1ze avatar Aug 14 '24 18:08 pr1ze

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

ykethan avatar Aug 16 '24 14:08 ykethan