Skip to content

Doesn't reload on save #1128

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
1 of 3 tasks
roman-16 opened this issue Oct 2, 2017 · 3 comments
Closed
1 of 3 tasks

Doesn't reload on save #1128

roman-16 opened this issue Oct 2, 2017 · 3 comments
Labels

Comments

@roman-16
Copy link

roman-16 commented Oct 2, 2017

  • Operating System: Windows 10 Pro N
  • Node Version: 8.5.0
  • NPM Version: 5.4.1
  • webpack Version: 3.6.0
  • webpack-dev-server Version: 2.9.1
  • This is a bug
  • This is a feature request
  • This is a modification request

Code

webpack.config.js:
https://pastebin.com/HQvzYH5f

Additional tsconfig.json:
https://pastebin.com/gMQiWVUG

Expected Behavior

Dev server does reload on save and display the new version from the source.

Actual Behavior

Dev server compiles on save but doesn't reload the page, when I reload the page manually my new version is not displayed.

For Bugs; How can we reproduce the behavior?

Use my config and fire up the dev server.

@shellscape
Copy link
Contributor

@Wavum we're going to need a very simple, but complete example of this not working correctly. The config you provided is much appreciated, but unfortunately not enough to go on. The functionality you're reporting is a very core, basic functionality of the module and we have a suit of passing tests and working examples that show it does indeed work. Citing that, this issue qualifies as more of a support question than a bug report, since our examples can be run locally showing that function working properly. With that, we'd like to suggest that you try Stack Overflow or the webpack Gitter to seek some support. In nearly all cases like this, the issue is traced back to an errant plugin or environment issue in a local config.

Of course, you may have stumbled across an edge case. If you can put together a simple repo we can use to reproduce this (free of additional plugins, using only the core webpack-dev-server module) we'll be happy to reopen and examine this issue. For the moment, we're closing this one as a question.

@andreyvolokitin
Copy link

@shellscape, could this be the same as #1160? If so, here is a minimal test case from webpack-dev-server repo: https://github.com/webpack/webpack-dev-server/tree/master/examples/cli/hmr. Try changing examples/.assets/layout.html — it works as described in the issue: compile happens, but page refresh don't

@yashrahurikar23
Copy link

I do not know if this would help but if you are working on VS Code there is this limit for watching files that you need to adjust a bit. You can read about it more here
https://code.visualstudio.com/docs/setup/linux#_visual-studio-code-is-unable-to-watch-for-file-changes-in-this-large-workspace-error-enospc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants