edgedb-js icon indicating copy to clipboard operation
edgedb-js copied to clipboard

Excessive stack depth error following upgrade to v6.0

Open blecorre-mnp opened this issue 8 months ago • 6 comments

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

blecorre-mnp avatar Feb 24 '25 10:02 blecorre-mnp