question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Watch doesn`t work correctly with links

See original GitHub issue

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…

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
SEAPUNKcommented, Mar 16, 2018

I believe the solution here is to set chokidar.followSymlinks to true if webpack’s resolve.symlinks is set to false: https://github.com/webpack/watchpack/blob/master/lib/DirectoryWatcher.js#L54

1reaction
SEAPUNKcommented, Feb 19, 2019
Read more comments on GitHub >

github_iconTop Results From Across the Web

Common Watch Problems and How to Fix Them
Have a common watch problem you can't fix? Maybe your watch has stopped working? Or your second hand is skipping?
Read more >
If your Apple Watch isn't connected or paired with your iPhone
If you don't get notifications, messages, or calls on your Apple Watch, your Apple Watch and iPhone might not be connected.
Read more >
Apple Watch Troubleshooting: Common Problems and Solutions
If the install won't download or start, open the Watch app on your iPhone, tap the My Watch tab, and go to General...
Read more >
Why Isn't My Apple Watch Pairing? 5 Ways to Fix It
If your Apple Watch isn't pairing with your iPhone, there are a number of ways you can fix the connection. Here's what you...
Read more >
How to Remove Watch Links: A Foolproof Guide
First things first. Before removing anything, make sure that you know how many links to remove. To do this, wear the watch and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found