Skip to content

Bug: react-scripts 4.0.1 : EBUSY: resource busy or locked, open 'C:\...\project\.eslintcache #10146

@pinonpierre

Description

@pinonpierre

Describe the bug

An error is emit after a yarn start (same with yarn build)

EBUSY: resource busy or locked, open C:\...\project\.eslintcache

Seems there is a concurential read/write on this file

Did you try recovering your dependencies?

Yes

$ npm --version
6.14.8
$ yarn --version
1.22.10

Which terms did you search for in User Guide?

  • eslintcache lock
  • windows lock

Environment

$ npx create-react-app --info
npx: installed 67 in 4.664s

Environment Info:

  current version of create-react-app: 4.0.1
  running from C:\Users\myuser\AppData\Roaming\npm-cache\_npx\15308\node_modules\create-react-app

  System:
    OS: Windows 10 10.0.19042
    CPU: (12) x64 Intel(R) Core(TM) i9-8950HK CPU @ 2.90GHz
  Binaries:
    Node: 14.15.1 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.10 - ~\AppData\Roaming\npm\yarn.CMD
    npm: 6.14.8 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Chrome: 87.0.4280.66
    Edge: Spartan (44.19041.423.0), Chromium (87.0.664.47)
    Internet Explorer: 11.0.19041.1
  npmPackages:
    react: Not Found
    react-dom: Not Found
    react-scripts: Not Found
  npmGlobalPackages:
    create-react-app: Not Found

Steps to reproduce

  1. Create a project in typescript with eslint
  2. Seems that the problem occurs only when there are a lot of files to build
  3. Use react-scripts 4.0.1 (The version 4.0.0 works)
  4. On "yarn start", an error occurs (90% of time but not always)

Expected behavior

yarn start works :)

Actual behavior

100120709-907d0e00-2e78-11eb-92e6-bd94c89acfd5

Reproducible demo

It's the difficult part.
The issue happen only on Windows (Due to a windows file locking) and when the project contains a lot of files
So, create a minimal project is hard and I cannot give you the project of my company

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