Skip to content

"Type instantiation is excessively deep and possibly infinite" for projection with eight fields #638

Open
@judofyr

Description

import {parse} from '@sanity-typed/groq-js'

parse(`*[_id=="id"]{
  "1": obj.a,
  "2": obj.b,
  "3": obj.c,
  "4": obj.d,
  "5": obj.e,
  "6": obj.f,
  "7": obj.g,
  "8": obj.h,
}`)

Not exactly sure which part is causing the problem, but if I removed the eighth field then it parses correctly.

Metadata

Assignees

No one assigned

    Labels

    help wantedPlease help me! I'm lonely.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions