Skip to content

(Large project) FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory #16834

Closed
@JoshuaKGoldberg

Description

@JoshuaKGoldberg

Spin-off of #16165.

On large project with (very rough ball park) 100k .ts lines and another ~50k .d.ts lines, tsc --watch will consistently run out of memory after >= dozen recompiles.

TypeScript Version: 2.3

tsconfig.json:

{
    "compilerOptions": {
        "experimentalDecorators": true,
        "noImplicitAny": true,
        "noResolve": false,
        "target": "ES5"
    }
}

Eventual error:

FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScript

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions