Repository navigation
On webpack run: FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory #14681
Copy link
Copy link
Closed
Description
I post this issue here because I think it's surely a typescript internal issue.
See:
s-panferov/awesome-typescript-loader#395
TypeStrong/ts-loader#502
Tested with typescript 2.2.1 and 2.3-nightly
[at-loader] Using typescript@2.2.1 from /Users/aight8/my-project/node_modules/typescript and "tsconfig.json" from /Users/aight8/my-project/tsconfig.json.
<--- Last few GCs --->
[25608:0x103801600] 77275 ms: Mark-sweep 1413.5 (1460.0) -> 1413.5 (1459.0) MB, 869.7 / 0.0 ms (+ 0.0 ms in 0 steps since start of marking, biggest step 0.0 ms, walltime since start of marking 870 ms) last resort
[25608:0x103801600] 78150 ms: Mark-sweep 1413.5 (1459.0) -> 1413.5 (1459.0) MB, 874.3 / 0.0 ms last resort
<--- JS stacktrace --->
==== JS stack trace =========================================
Security context: 0x3e17600266a1 <JS Object>
2: collectExternalModuleReferences [/Users/aight8/my-project/node_modules/typescript/lib/typescript.js:~64581] [pc=0x4b9261bbbb3](this=0x3e5a8a70e261 <JS Global Object>,file=0x3573668695f1 <a SourceFileObject with map 0x9febc156cb9>)
3: processImportedModules [/Users/aight8/my-project/node_modules/typescript/lib/typescript.js:~64862] [pc=0x4b92626d712](this=0x3e5a8a7...
FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
1: node::Abort() [/usr/local/bin/node]
2: node::FatalException(v8::Isolate*, v8::Local<v8::Value>, v8::Local<v8::Message>) [/usr/local/bin/node]
3: v8::Utils::ReportOOMFailure(char const*, bool) [/usr/local/bin/node]
4: v8::internal::V8::FatalProcessOutOfMemory(char const*, bool) [/usr/local/bin/node]
5: v8::internal::Factory::NewFixedArray(int, v8::internal::PretenureFlag) [/usr/local/bin/node]
6: v8::internal::TypeFeedbackVector::New(v8::internal::Isolate*, v8::internal::Handle<v8::internal::TypeFeedbackMetadata>) [/usr/local/bin/node]
7: v8::internal::SharedFunctionInfo::FindOrCreateLiterals(v8::internal::Handle<v8::internal::SharedFunctionInfo>, v8::internal::Handle<v8::internal::Context>) [/usr/local/bin/node]
8: v8::internal::JSFunction::EnsureLiterals(v8::internal::Handle<v8::internal::JSFunction>) [/usr/local/bin/node]
9: v8::internal::Compiler::Compile(v8::internal::Handle<v8::internal::JSFunction>, v8::internal::Compiler::ClearExceptionFlag) [/usr/local/bin/node]
10: v8::internal::Runtime_CompileLazy(int, v8::internal::Object**, v8::internal::Isolate*) [/usr/local/bin/node]
11: 0x4b9254843a7
Ts config is currently:
{
"compilerOptions": {
"noImplicitAny": false,
"strictNullChecks": false,
"moduleResolution": "node",
"target": "es2017",
"outDir": "bin",
"sourceMap": true,
"module": "commonjs",
"typeRoots": [
"node_modules/@types"
],
"pretty": true
},
"include": [
"src"
]
}However I tested various other settings. The error stays the same.
Expected behavior:
It should build.
Actual behavior:
It's not.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Activity