Skip to content

react-scripts start lags down system after some time #11423

@captain-woof

Description

@captain-woof

Describe the bug

Starting the dev server with a big project, with react-scripts start loads up everything fine, but as time passes, system horribly slows down. Turning off the server brings the system back to speed again, so cause of lag is isolated.

DISABLE_ESLINT_PLUGIN=true speeds things up initially, but does not help in the long run.

Did you try recovering your dependencies?

1.22.10

Which terms did you search for in User Guide?

EsLint, lag

Environment

Environment Info:

  current version of create-react-app: 4.0.3
  running from /root/.npm/_npx/c67e74de0542c87c/node_modules/create-react-app

  System:
    OS: Linux 5.10 Kali GNU/Linux Rolling 2021.3
    CPU: (4) x64 Intel(R) Core(TM) i3-4005U CPU @ 1.70GHz
  Binaries:
    Node: 12.22.5 - /usr/bin/node
    Yarn: 1.22.10 - /usr/local/bin/yarn
    npm: 7.5.2 - /usr/bin/npm
  Browsers:
    Chrome: 91.0.4472.114
    Firefox: Not Found
  npmPackages:
    react: ^16.13.1 => 16.14.0 
    react-dom: ^16.13.1 => 16.14.0 
    react-scripts: ^4.0.3 => 4.0.3 
  npmGlobalPackages:
    create-react-app: Not Found

Steps to reproduce

(Write your steps here:)

  1. Create a project with create-react-app
  2. Start dev server with yarn start
  3. Wait for some time
  4. System starts lagging

Expected behavior

Performance over time should be consistent, and not slow down as time passes.

Actual behavior

System lags a lot, almost freezes, after 10 minutes of running the dev server, even with DISABLE_ESLINT_PLUGIN=true

Reproducible demo

(Paste the link to an example project and exact instructions to reproduce the issue.)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions