Skip to content

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

Open

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

Activity

  1. ianschmitz commented on Nov 25, 2020

    @ianschmitz
    Contributor

    You may want to file this in the eslint repo? We're not doing anything special on our end AFAIK other than enabling the webpack plugin.

  2. pinonpierre commented on Nov 26, 2020

    @pinonpierre
    Author

    Thanks for your answer

    Seems environmental because it works on some machines but not on some others. Very complex to identify.

    So let's close this ticket

  3. raFTv01d commented on Nov 30, 2020

    @raFTv01d

    same problem

  4. pinonpierre commented on Dec 8, 2020

    @pinonpierre
    Author

    I reopened because it happen less often when I disable my Antivirus (Sophos) but it still have the issue sometimes

  5. pinonpierre commented on Dec 8, 2020

    @pinonpierre
    Author

    No way to reproduce the issue with "eslint --cache ."

    Happen only when launched from react-script.

    Is react-script launch multiple times eslint?

  6. AndrePinto-NET commented on Jan 27, 2021

    @AndrePinto-NET

    Facing the same issue, and my colleagues the same. This happened after the upgrade to version 4.0.1
    npm run start and npm run build both fail with the same error

  7. andrew-ares commented on Jun 10, 2021

    @andrew-ares

    Any updates on this? Same issue here.

  8. pinonpierre commented on Jun 10, 2021

    @pinonpierre
    Author

    No, I never solved the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions