-
-
Notifications
You must be signed in to change notification settings - Fork 243
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Doesn't read the memoryLimit from tsconfig.json #397
Comments
Sorry @nickretallack but it's not a bug - it's how this plugin works and how it is documented. We don't want to extend |
@nickretallack |
Cool, thanks. Honestly we ended up commenting out this plugin because it would stop development if there were any type errors, and we just converted our whole project from flow so we have about 8000 type errors. Instead, we've been running |
Current behavior
I created a react app using
create-react-app
. I put amemoryLimit
setting in thetsconfig.json
file like so:I put a very large amount of typescript files in the project.
I ran
yarn start
, and it built the app but then this happened:I opened the report and I saw this:
That's not the memory limit I set! So I edited
node_modules/react-scripts/webpack.conf.js
directly to add amemoryLimit
to theForkTsCheckerWebpackPlugin
constructor directly, like so:Then I ran
yarn start
and it succeeded in type checking my project.Expected behavior
I'd like to be able to configure the memory limit without having to eject from
create-react-app
or patch thereact-scripts
package. I'd think that configuring it in thetsconfig.json
file would work since it's already passing that configuration to the plugin anyway.Steps to reproduce the issue
I'm sure you can debug this issue by simply creating a react app with
create-react-app --typescript foo
, adding amemoryLimit
to yourtsconfig.json
file, and then adding a debug statement to check if your plugin is respecting that memory limit.Issue reproduction repository
Environment
The text was updated successfully, but these errors were encountered: