Open stephenkoo opened 6 years ago
Getting the same error, would be nice to be able to override the memoryLimit option of ForkTsCheckerWebpackPlugin in https://github.com/wmonk/create-react-app-typescript/blob/master/packages/react-scripts/config/webpack.config.dev.js
new ForkTsCheckerWebpackPlugin({
async: false,
watch: paths.appSrc,
tsconfig: paths.appTsConfig,
tslint: paths.appTsLint,
--> memoryLimit: env.tsCheckerMemoryLimit <-- ???
}),
I'm receiving this error also, apparently after upgrading my node version to 10.7.0, from what I can tell, but may be unrelated.
Given the instructions above, you were using node
10.x. Is this error reproducible with 8.11 (the current LTS) as well?
node 8.11.3, same error
Hi all,
any updates on this? Did any of you find a workaround?
I'm getting a similar issue:
Starting the development server...
ts-loader: Using typescript@2.9.2 and /Users/leo/my-app/tsconfig.json
/Users/leo/my-app/node_modules/fork-ts-checker-webpack-plugin/lib/service.js:22
throw error;
^
RangeError: Maximum call stack size exceeded
at Object.flatMap (/Users/leo/my-app/node_modules/tslint/lib/utils.js:151:18)
at Linter.getAllFailures (/Users/leo/my-app/node_modules/tslint/lib/linter.js:139:32)
at Linter.lint (/Users/leo/my-app/node_modules/tslint/lib/linter.js:99:33)
at /Users/leo/my-app/node_modules/fork-ts-checker-webpack-plugin/lib/IncrementalChecker.js:142:30
at WorkSet.forEach (/Users/leo/my-app/node_modules/fork-ts-checker-webpack-plugin/lib/WorkSet.js:17:13)
at IncrementalChecker.getLints (/Users/leo/my-app/node_modules/fork-ts-checker-webpack-plugin/lib/IncrementalChecker.js:139:17)
at run (/Users/leo/my-app/node_modules/fork-ts-checker-webpack-plugin/lib/service.js:15:29)
at process.<anonymous> (/Users/leo/my-app/node_modules/fork-ts-checker-webpack-plugin/lib/service.js:38:5)
at emitTwo (events.js:126:13)
at process.emit (events.js:214:7)
Could this be the same issue or is this something different?
yarn
1.9.4.node
8.11.2react-scripts-ts
2.17.0 (which uses fork-ts-checker-webpack-plugin
^0.2.8)is setting memoryLimit
option not working for you?
Is this a bug report?
Yes.
Can you also reproduce the problem with npm 4.x?
Yes.
Which terms did you search for in User Guide?
ForkTsCheckerWebpackPlugin, out of memory, fork-ts-checker-webpack-plugin, memoryLimit.
Environment
Steps to Reproduce
Expected Behavior
To run the app, displaying a
<button>
element with the textYo
.Actual Behavior
Produces error:
Reproducible Demo
https://github.com/wmonk/create-react-app-typescript/files/2209236/kanso.zip