"Cannot use 'in' operator to search for 'name' in null" during Amplify Codegen @aws-amplify/cli @12.7.0 #13338
Closed
2 tasks done
Labels
codegen
Issues related to amplify codegen
pending-response
Issue is pending response from the issue author
pending-triage
Issue is pending triage
How did you install the Amplify CLI?
pnpm
If applicable, what version of Node.js are you using?
20.7.0
Amplify CLI Version
12.7.0
What operating system are you using?
Ma
Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.
No manual changes made
Describe the bug
When running amplify codegen, i get the following output
amplify codegen ✔ Generated GraphQL operations successfully and saved at graphql ✖ Cannot use 'in' operator to search for 'name' in null
When I downgrade to @aws-amplify/[email protected] it works
Expected behavior
✔ Generated GraphQL operations successfully and saved at graphql ✔ Code generated successfully and saved in file api/API.ts
Reproduction steps
Run amplify codegen. I cannot identify if any change to the schema led to this.
Project Identifier
a1fad6e952abc1a3b581c4d3442702d2
Log output
Additional information
After downgrading to v11.1.1 then upgrading back to 12.7.0 it now works as intended.
Before submitting, please confirm:
The text was updated successfully, but these errors were encountered: