You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RangeError: Maximum call stack size exceeded
at getConstraintFromTypeParameter (D:\...\node_modules\typescript\lib\tsc.js:24863:48)
at getConstraintOfTypeParameter (D:\...node_modules\typescript\lib\tsc.js:24268:66)
at isRelatedTo (D:\...\node_modules\typescript\lib\tsc.js:26681:42)
at isRelatedTo (D:\...\node_modules\typescript\lib\tsc.js:26665:38)
at typeArgumentsRelatedTo (D:\...\node_modules\typescript\lib\tsc.js:26904:35)
at isRelatedTo (D:\...\node_modules\typescript\lib\tsc.js:26706:38)
at isRelatedTo (D:\...\node_modules\typescript\lib\tsc.js:26688:42)
at isRelatedTo (D:\...\node_modules\typescript\lib\tsc.js:26665:38)
at typeArgumentsRelatedTo (D:\...\node_modules\typescript\lib\tsc.js:26904:35)
at isRelatedTo (D:\...\node_modules\typescript\lib\tsc.js:26706:38)
Think I've got a similar issue, based on the stack trace. I've managed to get the offending code down to this:
typeAttributes<Keysextendsstring>={[KeyinKeys]: string;// I'm actually using Attribute<Key> in my code, but `string` is all that is needed to cause the RangeError}classQuery<AextendsAttributes<keyofA>>{multiply<BextendsAttributes<keyofB>>(x: B): Query<A&B>;}
Stack trace:
/usr/local/lib/node_modules/typescript/lib/tsc.js:51296
throw e;
^
RangeError: Maximum call stack size exceeded
at isRelatedTo (/usr/local/lib/node_modules/typescript/lib/tsc.js:26081:33)
at isRelatedTo (/usr/local/lib/node_modules/typescript/lib/tsc.js:26166:38)
at isRelatedTo (/usr/local/lib/node_modules/typescript/lib/tsc.js:26139:42)
at typeRelatedToEachType (/usr/local/lib/node_modules/typescript/lib/tsc.js:26351:35)
at isRelatedTo (/usr/local/lib/node_modules/typescript/lib/tsc.js:26125:34)
at isRelatedTo (/usr/local/lib/node_modules/typescript/lib/tsc.js:26189:42)
at isRelatedTo (/usr/local/lib/node_modules/typescript/lib/tsc.js:26147:38)
at isRelatedTo (/usr/local/lib/node_modules/typescript/lib/tsc.js:26153:38)
at isRelatedTo (/usr/local/lib/node_modules/typescript/lib/tsc.js:26153:38)
at isRelatedTo (/usr/local/lib/node_modules/typescript/lib/tsc.js:26153:38)
James K Nelson (@jamesknelson) The issue you're seeing above isn't related to this one (and isn't fixed by #14874). Would you mind creating a new issue.
Activity
jamesknelson commentedon Mar 21, 2017
Think I've got a similar issue, based on the stack trace. I've managed to get the offending code down to this:
Stack trace:
I'm on tsc 2.2.1, node 7.7.2, osx 10.11.6
ahejlsberg commentedon Mar 27, 2017
James K Nelson (@jamesknelson) The issue you're seeing above isn't related to this one (and isn't fixed by #14874). Would you mind creating a new issue.