Skip to content

Hot Module Replacement doesn't notice when a symlink is changed #57

Closed

Description

@webpack-bot

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.


This issue was moved from webpack/webpack#5395 by @sokra. Orginal issue was by @pweaver.

Activity

  1. rrousselGit commented on Nov 10, 2017

    @rrousselGit

    +1
    As a workaround I made something like this :

        "start": "npm-run-all --parallel build:* dev",
        "dev": "webpack-dev-server",
        "build:app": "ncp ../my-app/src my-app && watch \"ncp my-app ../my-app/src\" my-app",
    

    But this is not optimal

  2. alexander-akait commented on Feb 28, 2018

    @alexander-akait
    Member

    @DennisNeuendorfNetlight @rrousselGit problem still exists? Somebody can create minimum reproducible test repo?

  3. alexander-akait commented on Feb 19, 2019

    @alexander-akait
    Member

    Closing due to inactivity. Please test with latest version and feel free to reopen if still regressions. Thanks!

  4. alexander-akait commented on Feb 19, 2019

    @alexander-akait
    Member

    /cc @martpie can you create minimum reproducible test repo?

  5. martpie commented on Feb 28, 2019

    @martpie

    @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.

    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)
    

    You can inspect the webpack config by adding console.log(config) or util.inspect on this line: https://github.com/masad-frost/monorepo-typescript-next-the-sane-way/blob/master/website/next.config.js#L18

  6. strobox commented on Mar 15, 2019

    @strobox

    @evilebottnawi Thanks for reopening.

  7. alexander-akait commented on Mar 15, 2019

    @alexander-akait
    Member

    Anywat feel free to send a PR

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