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
/usr/lib/node_modules/typescript/lib/tsc.js:55776
throw e;
^
RangeError: Maximum call stack size exceeded
at getResolvedSymbol (/usr/lib/node_modules/typescript/lib/tsc.js:30411:35)
at checkIdentifier (/usr/lib/node_modules/typescript/lib/tsc.js:31493:26)
at checkExpressionWorker (/usr/lib/node_modules/typescript/lib/tsc.js:35550:28)
at checkExpression (/usr/lib/node_modules/typescript/lib/tsc.js:35534:42)
at checkNonNullExpression (/usr/lib/node_modules/typescript/lib/tsc.js:33160:37)
at checkPropertyAccessExpressionOrQualifiedName (/usr/lib/node_modules/typescript/lib/tsc.js:33181:24)
at checkQualifiedName (/usr/lib/node_modules/typescript/lib/tsc.js:33178:20)
at checkExpression (/usr/lib/node_modules/typescript/lib/tsc.js:35531:24)
at getTypeFromTypeQueryNode (/usr/lib/node_modules/typescript/lib/tsc.js:27378:53)
at getTypeFromTypeNode (/usr/lib/node_modules/typescript/lib/tsc.js:28161:28)
If I move Base elsewhere or rename the namespace Service, everything goes fine. So I guess it must be a
compiler bug.
The text was updated successfully, but these errors were encountered:
NStal
changed the title
Maximum call stack size exceeded
Generic using typeof may cause Maximum call stack size exceeded
Jul 16, 2017
TypeScript Version: 2.4.1
Code
Expected behavior: Compiles
Actual behavior:
/usr/lib/node_modules/typescript/lib/tsc.js:55776 throw e; ^ RangeError: Maximum call stack size exceeded at getResolvedSymbol (/usr/lib/node_modules/typescript/lib/tsc.js:30411:35) at checkIdentifier (/usr/lib/node_modules/typescript/lib/tsc.js:31493:26) at checkExpressionWorker (/usr/lib/node_modules/typescript/lib/tsc.js:35550:28) at checkExpression (/usr/lib/node_modules/typescript/lib/tsc.js:35534:42) at checkNonNullExpression (/usr/lib/node_modules/typescript/lib/tsc.js:33160:37) at checkPropertyAccessExpressionOrQualifiedName (/usr/lib/node_modules/typescript/lib/tsc.js:33181:24) at checkQualifiedName (/usr/lib/node_modules/typescript/lib/tsc.js:33178:20) at checkExpression (/usr/lib/node_modules/typescript/lib/tsc.js:35531:24) at getTypeFromTypeQueryNode (/usr/lib/node_modules/typescript/lib/tsc.js:27378:53) at getTypeFromTypeNode (/usr/lib/node_modules/typescript/lib/tsc.js:28161:28)
If I move
Base
elsewhere or rename thenamespace Service
, everything goes fine. So I guess it must be acompiler bug.
The text was updated successfully, but these errors were encountered: