Visitar URL original
Watch Mode stops functioning if emitted file is busy or locked · Issue #44 · webpack/watchpack · GitHub
Skip to content

Watch Mode stops functioning if emitted file is busy or locked #44

Closed

Description

@SpaceK33z

Do you want to request a feature or report a bug?
A bug

What is the current behavior?
When in watch mode, if a file is busy when attempting to emit to it, watch stops functioning. The following error is appropriately logged:

Error: EBUSY: resource busy or locked, open '..\js\bundle.js'
    at Error (native)

If the current behavior is a bug, please provide the steps to reproduce.
run webpack --watch
save a watched file
output to a file which is currently being used by another process

What is the expected behavior?
An error is logged to the console but watch mode continues to function. This is the behavior of Grunt and Gulp watchers.

Please mention other relevant information such as the browser version, Node.js version, Operating System and programming language.
A valid reason why a file could be momentarily busy is if it is being synced to a server directory.

--

Here are the details of my setup:

  • webpack version: 2.1.0-beta.25
  • node version: 6.9.1
  • os: windows 10
  • browser: chrome 55

--

Moved from webpack/webpack#3523

Activity

  1. mika76 commented on Jun 5, 2017

    @mika76

    ping 🏓

    This is such an irritating little issue, couldn't someone please take it up? 🙏

  2. hotwer commented on Jun 11, 2018

    @hotwer

    I agree, sometimes webpack takes a while to restart, having the watch restart by itself is important.

  3. tbondon commented on Jun 12, 2018

    @tbondon

    I've had this problem for 2 weeks and finally found a solution, it may not be the case for everyone but I use OneDrive to save my files and coincidentally when i checked right after having the issue, OneDrive was uploading the damn file. So I just stopped OneDrive :P

  4. sokra commented on Jul 10, 2019

    @sokra
    Member

    old issue, create a new issue if this is still an 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

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions