Skip to content

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

Closed

Description

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

Activity

  1. williamg commented on Jul 4, 2017

    @williamg

    I get this same issue on a smaller project using watchify with tsify with typescript@next

    EDIT: Adding skipLibCheck: true to my tsconfig.json fixes this.

  2. mhegazy commented on Aug 17, 2017

    @mhegazy
    Contributor

    Josh Ghoulberg 👻 (@JoshuaKGoldberg) can you give TS 2.5-rc a try and let us know if you are still seeing failures? and if so please share enlistment instructions with Nathan Shively-Sanders (@sandersn) to investigate further.

  3. minestarks commented on Aug 18, 2017

    @minestarks
    Contributor

    https://www.nuget.org/packages/Microsoft.TypeScript.MSBuild/2.5.0 (yes, it should be rc tagged but it isn't at the moment)

  4. JoshuaKGoldberg commented on Aug 18, 2017

    @JoshuaKGoldberg
    ContributorAuthor

    🔥

  5. locked and limited conversation to collaborators on Jun 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

BugA bug in TypeScript

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions