Skip to content

Cannot read properties of undefined (reading 'value') on gql compile or push  #1923

Open
@ykethan

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

  1. Create schema with the model provded
  2. 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.

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions