-
Notifications
You must be signed in to change notification settings - Fork 12.8k
RangeError: Maximum call stack size exceeded #12804
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@sandersn I was able to repro with TS 2.0.10 too. |
Thanks! Did you get any of the stack trace too? |
seems to be related to declaration emit
|
simplified repro (compile with // app.ts
import * as Db from "./db"
export async function foo() {
} // db.d.ts
declare namespace Db {
export import Types = Db;
}
export = Db; |
Thanks @vladima |
Don't know whether this qualifies as an issue of Webpack, but in case anyone runs into this problem for the same reasons as me again: This error will arise, even in Webpack 2.2.0-rc.7, if you accidentally load in a
... and stacktrace (actually not sure whether it's ts-loader's problem or Webpack's, now that I look at it):
As a solution, you can either find a way to explicitly exclude the MPEG-TS files from being loaded, or just rename them to .tsv. |
@shirakaba your crash probably doesn't have the same root cause as this bug; most crashes that result from analysing non typescript files are stack overflows. Can you file a new bug instead? Thanks. |
TypeScript Version: 2.1.4
tsc crashes with
RangeError: Maximum call stack size exceeded
Code
I managed to repro with:
npm install aws-sdk
The text was updated successfully, but these errors were encountered: