You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Hot Module Replacement doesn't notice when a symlink is changed #57
What is the current behavior?
We symlink our node_modules directory and change the symlink when we update node_modules. When the directory is changes HMR doesn't detect that something has changed.
If the current behavior is a bug, please provide the steps to reproduce.
Setup HMR referencing a file with the parent directory symlinked. Change the symlink to a different directory with a modified version of the file.
What is the expected behavior?
HMR should detect that files have changed. Currently does not.
Please mention other relevant information such as the browser version, Node.js version, webpack version and Operating System.
Linux Ubuntu.
git clone ... && cd ...
cd website
npm i
npm run dev
# then update shared/index.js, changes won't be applied on Ubuntu (works fine on macOS, and I did not test on win32)
Activity
rrousselGit commentedon Nov 10, 2017
+1
As a workaround I made something like this :
But this is not optimal
alexander-akait commentedon Feb 28, 2018
@DennisNeuendorfNetlight @rrousselGit problem still exists? Somebody can create minimum reproducible test repo?
alexander-akait commentedon Feb 19, 2019
Closing due to inactivity. Please test with latest version and feel free to reopen if still regressions. Thanks!
alexander-akait commentedon Feb 19, 2019
/cc @martpie can you create minimum reproducible test repo?
martpie commentedon Feb 28, 2019
@evilebottnawi I tried, but I could not create a minimum "minimum" repro.
But this can be seen there: https://github.com/masad-frost/monorepo-typescript-next-the-sane-way.
You can inspect the webpack config by adding
console.log(config)orutil.inspecton this line: https://github.com/masad-frost/monorepo-typescript-next-the-sane-way/blob/master/website/next.config.js#L18strobox commentedon Mar 15, 2019
@evilebottnawi Thanks for reopening.
alexander-akait commentedon Mar 15, 2019
Anywat feel free to send a PR