aws-amplify / aws-amplify/amplify-codegen
Amplify codegen statements: Code generation failed with the following error, Syntax Error.
- Dominant language
- TypeScript
- Stars
- 59
- Forks
- 64
- PR merge metrics
- No merged PRs in 30d
Description
### 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.
Contributor guide
Assessment
This issue has not been assessed yet.