Skip to content

RangeError: Maximum call stack size exceeded #12804

Closed
@maghis

Description

@maghis

TypeScript Version: 2.1.4

tsc crashes with RangeError: Maximum call stack size exceeded

Code
I managed to repro with:

  • install latest aws-sdk npm install aws-sdk
  • one single file /src/test.ts
import { DynamoDB } from "aws-sdk";

export class MyClass {
    public async updateItem() {
    }
}
  • tsconfig.json
{
    "compilerOptions": {
        "module": "commonjs",
        "declaration": true,
        "outDir": "build",
        "lib": [
            "es6"
        ],
        "types": [
            "node"
        ]
    },
    "include": [
        "src/**/*"
    ],
    "exclude": [
        "node_modules"
    ]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScript

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions