Skip to content

Watch doesn`t work correctly with links #60

Description

@webpack-bot

Do you want to request a feature or report a bug?
Bug report.

What is the current behavior?
When i create link in node_modules and set symlinks to false, I have problem with watch, it works sometimes (more often it doesn`t work)

If the current behavior is a bug, please provide the steps to reproduce.

  1. create link
  2. set symlinks to false
  3. change file by link

What is the expected behavior?
Watch must work

If this is a feature request, what is motivation or use case for changing the behavior?

Please mention other relevant information such as the browser version, Node.js version, webpack version and Operating System.

node v8.9.3
npm 5.6.0
Description: Ubuntu 16.04.3 LTS
Release: 16.04
Codename: xenial
4.4.0-83-generic
webpack 3.10.0


This issue was moved from webpack/webpack#6122 by @sokra. Orginal issue was by @arshtepe.

@evilebottnawi I have created repo https://bitbucket.org/CyBer_UA/webpack-demo/src/344771d7d4b403eb662a9c0e7f23aaedc920f0e9?at=master
To reproduce you need:

cd repo/
npm link
cd ..
npm link simple-repo
webpack --watch

and after that you need to change file index.js in repo folder
from

import test from "src/test";

to

import test from "./src/test"; 

and after webpack do nothing...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    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