-
Notifications
You must be signed in to change notification settings - Fork 13k
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptFixedA PR has been merged for this issueA PR has been merged for this issue
Milestone
Description
TypeScript Version: 2.2.1
ts-loader version: 1.3.2 and 2.0.1 (probably no matter)
node version: v4.7.2 and v6.9.5 (probably no matter)
I use webpack + ts-loader with next config:
ts: {
transpileOnly: true,
compilerOptions: {
target: 'ES5',
jsx: 'react',
sourceMap: true
}
},
After upgrade typescript from 2.0.3 to 2.2.1 compilation fail with next error:
ts-loader: Using typescript@2.2.1 and /mnt/ssd/home/oleg/IdeaProjects/hc/application/src/tsconfig.json 49% 1306/2000 build modules
<--- Last few GCs --->
173682 ms: Mark-sweep 1354.8 (1435.6) -> 1354.8 (1435.6) MB, 979.1 / 0.0 ms [allocation failure] [GC in old space requested].
174623 ms: Mark-sweep 1354.8 (1435.6) -> 1354.8 (1435.6) MB, 940.7 / 0.0 ms [allocation failure] [GC in old space requested].
175574 ms: Mark-sweep 1354.8 (1435.6) -> 1357.5 (1407.6) MB, 951.1 / 0.0 ms [last resort gc].
176520 ms: Mark-sweep 1357.5 (1407.6) -> 1360.5 (1407.6) MB, 945.5 / 0.0 ms [last resort gc].
<--- JS stacktrace --->
==== JS stack trace =========================================
Security context: 0x17e3fb1cfb51 <JS Object>
1: toString [native v8natives.js:~642] [pc=0x331e2359bef6] (this=0x2fae35ff1a9 <Number: nan>,u=0x17e3fb104381 <undefined>)
2: arguments adaptor frame: 0->1
3: isNumericLiteralName [/mnt/ssd/home/oleg/IdeaProjects/hc/node_modules/typescript/lib/typescript.js:~35538] [pc=0x331e212c2339] (this=0x17e3fb1e6111 <JS Global Object>,name=0x1b5b1edec079 <String[8]: sendStat>)
4: isNumeric...
FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
1: node::Abort() [grunt]
2: 0x1096a4c [grunt]
3: v8::Utils::ReportApiFailure(char const*, char const*) [grunt]
4: v8::internal::V8::FatalProcessOutOfMemory(char const*, bool) [grunt]
5: v8::internal::Factory::NewRawOneByteString(int, v8::internal::PretenureFlag) [grunt]
6: v8::internal::Factory::NewStringFromOneByte(v8::internal::Vector<unsigned char const>, v8::internal::PretenureFlag) [grunt]
7: v8::internal::Factory::NumberToString(v8::internal::Handle<v8::internal::Object>, bool) [grunt]
8: v8::internal::Runtime_NumberToStringSkipCache(int, v8::internal::Object**, v8::internal::Isolate*) [grunt]
9: 0x331e200092a7
Expected behavior:
Compilation success
Actual behavior:
Compilation fail
ekulabuhov, slovyagin and morsh
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptFixedA PR has been merged for this issueA PR has been merged for this issue