-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
CRA build slow when using typescript #32229
Comments
@weswigham, as requested, here's a new issue. This is with |
@cyrus-za is there a public project that reproduces this behavior? Have you tried a more recent version of TypeScript or create-react-app? I'm trying to assemble a repro for this issue, but do not have enough information. Aside from running |
I haven't used CRA in over a year. Using NextJS, partly because of this exact issue |
I am stuck because of this issue |
Can anyone help me. I am using material ui with typescript cra and i am stuck because of this issue |
@Yashpk789987 do you have an example repro? I still don't have enough information to accurately investigate this. |
Closing due to no follow-up. It sounds like material-ui is the root cause here, which is tracked elsewhere. |
TypeScript Version: 3.6.0-dev.20190703
Search Terms:
Code
To reproduce simply create a new react app with CRA cli using --typescript flag and try
react-scripts build
inside a docker container.allowJS
as 90% of the codebase is still JS (busy converting them to TS over time)yarn build
which runsreact-scripts build
Expected behavior:
Build should finish within 1 minute
Actual behavior:
When building on local machine in docker container it takes 10+ minutes. When building on codeship pro (limited cpu and memory) it throws the below error:
AS you can see, it has a memory leak and the package responsible for it is the source-map plugin. Create React App uses
fork-ts-checker-webpack-plugin
for type checking and babel 7 for building. The issue is with the type checking.Related Issues:
yarn tsc && react-scripts build
v3 takes 1 hour to complete facebook/create-react-app#7003The text was updated successfully, but these errors were encountered: