Typescript `tsc` outputs `RangeError: Maximum call stack size exceeded`

Open
#8,749 0 comments 2 reactions 1 assignee View on GitHub

Maintainers usually reply within 1 day

@dcousens is already working on this.

Since Aug 9, 2023.

Assessment

This issue has not been assessed yet.

Description

As reported by @mmachatschek in https://github.com/keystonejs/keystone/pull/8743#discussion_r1287191909
Workaround could be to try node --stack-size=4000 ./node_modules/typescript/lib/tsc.js.

It is suspected that a high number of lists and with a high number of relationships may result in an exponential stack blowout when type checking. The addition of the Session type parameter has introduced this regression for some users.

I will attempt to reproduce this problem when I can, but I have made this ticket to track the problem instead of relying on https://github.com/keystonejs/keystone/pull/8743.

Dominant language
TypeScript
Stars
10k
Forks
1.3k
Avg merge
1d 12h
Merged PRs (30d)
38

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from keystonejs/keystone

All issues in keystonejs/keystone

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.