Skip to content

Excessive stack depth error following upgrade to v6.0 #1209

Open
@blecorre-mnp

Description

@blecorre-mnp

Describe the bug
When switching to Gel 6.0 and using the latest @gel/generate version, we get multiple Excessive stack depth comparing types ... errors as a result of tsc.

Reproduction
Following the initialization of a new project, simply try to generate the query builder with npx @gel/generate edgeql-js --target=ts and opening the generated file casting.ts is enough to see the error on our side. Here is the result of the tsc command.

Errors  Files
     5  dbschema/edgeql-js/casting.ts:53
    16  dbschema/edgeql-js/modules/std.ts:1859
     5  dbschema/edgeql-js/operators.ts:933
     2  dbschema/edgeql-js/set.ts:150

Expected behavior
It should not return any error, as things used to work fine when using older EdgeDB / Gel versions such as v5.8.

Versions

  • OS: MacOS Sequoia 15.3.1
  • EdgeDB version: 6.0+a940583
  • EdgeDB CLI version: 6.1.2+1e45048
  • @gel/generate version: 0.6.0
  • Node/Deno version: 22.10.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugupstream:edgedbIssue produced by changes to EdgeDB/EdgeQL

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions