Skip to content

Watching doesn't work if parent directory contains special characters #42

Closed

Description

@SpaceK33z

Easiest way to reproduce this is by running the webpack tutorial from a directory that contains parentheses in the name.

This is an issue in chokidar (see paulmillr/chokidar#533). There is a PR open to fix it.

This will also be fixed if we move to another watching library, which #41 intends to do.

For more info:

Activity

  1. marcoqu commented on Mar 1, 2017

    @marcoqu

    Hi, any news on this?
    Is watchpack going to move to sane or are we waiting a patch for chokidar?
    Just asking because I'm stuck on a Dropbox Business folder, and there's no way to make it work...

    Any workaround?
    Thanks

  2. gbmeireles commented on Mar 8, 2017

    @gbmeireles

    @marcoqu I am trying to get it working by making a link to a folder without any especial characters.
    On windows on an admin prompt:
    mklink /J "C:\Projects" "C:\Dropbox (Business)\Projects"

  3. shshaw commented on Mar 8, 2017

    @shshaw

    @gbmeireles In this case, C:\Projects is the link and C:\Dropbox (Business)\Projects is where the actual files reside?

  4. gbmeireles commented on Mar 8, 2017

    @gbmeireles

    @shshaw Yes, that`s right.

  5. gbmeireles commented on Mar 8, 2017

    @gbmeireles

    @shshaw @marcoqu I did not manage to make the symlink approach work like I expected. What did work for me was moving the folder to a valid path and then making a symlink back to the original path but that may not be possible for everyone. Sorry.

  6. marcoqu commented on Mar 9, 2017

    @marcoqu

    @gbmeireles @shshaw The issue with dropbox businness and watchpack is that watchpack does not work with folders with brackets or with symlinks, and dropbox also doens't sync symlinks. So that won't fix it.

    The hack that made it work for me is manually replacing is-glob used by chokidar with the latest version (3.1.0?). That actually worked. See also: paulmillr/chokidar#533

    You should be able to use npm shrinkwrap to override deep dependencies from webpack/watchpack:
    How do I override nested NPM dependency versions?

  7. Jorenm commented on May 26, 2017

    @Jorenm

    Here's a copy of the shrinkwrap I used to fix it:

    {
      "dependencies": {
        "chokidar": {
          "version": "1.6.1",
          "from": "chokidar@1.6.1",
          "dependencies": {
            "is-glob": {
              "version": "3.1.0",
              "from": "is-glob@2.0.1"
            }
          }
        }
      }
    }
    
  8. syed834 commented on Oct 30, 2024

    @syed834

    **_

    • Uploading image (1).jpg…

    _**

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

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions