10000 FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory · Issue #421 · TypeStrong/ts-loader · GitHub
[go: up one dir, main page]

Skip to content
FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory #421
@prasanthkarukkuvel

Description

@prasanthkarukkuvel

ts-loader runs out of memory while building. Its seems related to use of enhanced-resolve

`==== JS stack trace =========================================

Security context: 000002F1F9DC9E51
1: forEachBail [D:\Production\fsm-ui-analytics\node_modules\ts-loader\node_modules\enhanced-resolve\lib\forEachBail.js:~5] [pc=000003F65D84C023] (this=000002F1F9DE0D29 ,array=0000038750240011 <JS Array[7]>,iterator=0000038750240079 <JS Function (SharedFunctionInfo 0000006216543CD1)>,callback=00000387502400C1 <JS Function (SharedFunctionInfo 0000006216543D91)>)
2: /* ...`

But adding LoaderOptionsPlugin with options to webpack resolves this issue

new LoaderOptionsPlugin({ options: {} })

Might be because

function makeResolver(options: { resolve: interfaces.Resolve }): interfaces.ResolveSync { return node.create.sync(options.resolve); }

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0