Skip to content
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

The react app scaffolder is extremely slow to compile #837

Closed
willmcvay opened this issue Apr 7, 2020 · 0 comments · Fixed by #845
Closed

The react app scaffolder is extremely slow to compile #837

willmcvay opened this issue Apr 7, 2020 · 0 comments · Fixed by #845
Assignees
Labels
bug Something isn't working front-end Relates to front end issues high-priority Issues scheduled for upcoming major release react-app-scaffolder Relates to React App Scaffolder package

Comments

@willmcvay
Copy link
Contributor

  • The scaffolder appears to be working fine now, verified however for dev builds it is extremely slow to first paint and seems to be blocked somewhere in webpack - the main thread is blocked and the browser freezes.
  • There is a webpack warning you can see in the dev tools saying that the webpack cache environment is not setup in the webpack.config.js - this would be a good starting place to look.
  • Looks like a build issue rather than a code issue but could be wrong.
  • FYI best way to approach this is to yarn link in the scaffolder folder then yarn link @reapit/generator-react-app-scaffolder in a target folder, then yo @reapit/react-app-scaffolder and scaffold an app to work on the config. When you have debugged the problem, copy your changes back to the main repo.
  • The problem is present in all scaffold configurations and can be replicated after the first build, ie when you run yarn start:dev in the app folder.
@willmcvay willmcvay added bug Something isn't working react-app-scaffolder Relates to React App Scaffolder package front-end Relates to front end issues high-priority Issues scheduled for upcoming major release labels Apr 7, 2020
@vuhuucuong vuhuucuong self-assigned this Apr 8, 2020
vuhuucuong pushed a commit that referenced this issue Apr 8, 2020
vuhuucuong pushed a commit that referenced this issue Apr 8, 2020
vuhuucuong pushed a commit that referenced this issue Apr 8, 2020
* fix: #837 the react scaffolder extremely slow to compile
nphivu414 pushed a commit that referenced this issue Apr 29, 2020
* fix: #837 the react scaffolder extremely slow to compile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working front-end Relates to front end issues high-priority Issues scheduled for upcoming major release react-app-scaffolder Relates to React App Scaffolder package
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants