Cannot read properties of undefined (reading 'value') on gql compile or push #1923
Open
Description
How did you install the Amplify CLI?
No response
If applicable, what version of Node.js are you using?
No response
Amplify CLI Version
12.5.2
What operating system are you using?
Mac
Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.
No
Describe the bug
type Users @model @auth(rules: [{ allow: public }]) {
id: [ID!]!
email: AWSEmail
}
if you create a model on CLI or studio with id: [ID!]!
the push or gql-compile will fail with Cannot read properties of undefined (reading 'value')
, which does not provide useful message.
Expected behavior
throw appropriate error
Reproduction steps
- Create schema with the model provded
- run gql-compile or push
Project Identifier
No response
Log output
# Put your logs below this line
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.