-
Notifications
You must be signed in to change notification settings - Fork 178
On webpack run: FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory #395
Comments
I'm also affected by this. Happened today after I upgraded all packages (from about 1 month ago). Not sure about the exact cause. Typescript 2.3.0-RC also cause this. |
Looks like this was fixed by pull microsoft/TypeScript#15075, issue microsoft/TypeScript#14628. Will be released as TS 2.3.1 soon. |
I just tried to upgrade from 2.2.2 to 2.3.1 and I got this error, that I wasn't getting before. So I suppose this PR didn't really fix the problem? |
I can reproduce in 2.3.1 as well, but not with |
I just tried with |
I think we are being hit by different bugs with equal behavior them. |
This is happening to me no matter what TS version with transpileOnly=true. Tried 2.2.2, 2.3.3, and next. Seems like it must be a bug in awesome-typescript-loader. |
Got this error on both loader: ts and awesome. Can't find a solution. Error appears only when running tests on Karma. Propject compiles normally without tests |
I would like to add to this issue. No typescript is being used in my project is the kicker. Same error. Using Babelrc, styleintrc, reduxrc, angualrJS. See this link too for similar issue possibly related to the moduleConcat plugin --> Link My source code here for packages and webpack configs --> link.
|
I am also running into a similar issue. Though mine occurs regardless of transpileOnly. ts-loader works fine. {
"compilerOptions": {
"noImplicitAny": true,
"removeComments": true,
"allowJs": true,
"strictNullChecks": true,
"baseUrl": "./src",
"typeRoots": [
"./node_modules/@types/",
"./typings/"
],
"allowSyntheticDefaultImports": true,
"target": "es2016",
"module": "es6",
"moduleResolution": "node"
},
"awesomeTypescriptLoaderOptions": {
"transpileOnly": true,
"useBabel": true,
"useCache": true,
"cacheDirectory": "./node_modules/.cache/awesome-typescript-loader",
"useTranspileModule": true
}
}
|
I found that this was happening when I had linked modules with https://webpack.js.org/configuration/resolve/#resolve-symlinks |
#395 (comment) solved it for me too |
If
transpileOnly
is true it works. However this is not a permanent solution.Webpack builds very long time and the memory of the webpack process increases over 1.5 GB, until node.js ran out of memory. I literally build just a ts file as entry point which contains
console.log('abc')
.Ts config is currently:
However I tested various other settings. The error stays the same.
Tested with typescript 2.2.1 and 2.3-nightly
Parallel issue in ts-loader: TypeStrong/ts-loader#502
The text was updated successfully, but these errors were encountered: