keystone
keystone copied to clipboard
Typescript `tsc` outputs `RangeError: Maximum call stack size exceeded`
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.