Questions tagged [webpack-hot-middleware]

Webpack-hot-middleware refers to the module that concerns only the mechanisms of connecting a browser client to a JavaScript module bundler Webpack server and receiving its respective updates, meaning being able to use the technique of keeping the app running and injecting new versions of the files that one edits at runtime, a.k.a hot reloading, without using webpack-dev-server. Use this tag for questions related to this webpack module.

Webpack-hot-middleware refers to the module that concerns only the mechanisms of connecting a browser client to a JavaScript module bundler Webpack server and receiving its respective updates, meaning being able to use the technique of keeping the app running and injecting new versions of the files that one edits at runtime, a.k.a hot reloading, without using webpack-dev-server. Use this tag for questions related to this webpack module.

85 questions
0
votes
1 answer

Correct way to configure babel-loader in webpack for HMR

About a week ago I ran into a problem while adding HMR to my project, the problem was that it just didn't work, the console showed HMR Enabled and also detected changes on the files, but it didn't re-render the view, the console would log: [HMR]…
0
votes
0 answers

HMR not working when using nodemon

I have an app that is using express to serve some API calls and webpack to server some static assets in development. All works ok until I bring nodemon into the setup. When I run my app using nodemon I get this error when I update a file on the…
me-me
  • 5,139
  • 13
  • 50
  • 91
0
votes
1 answer

webpack Hot Middleware updates across all tabs instances when using multiple tabs / browsers

I've bumped into an issue with webpack-hot-middleware, when i open multiple instances of browsers or tabs (chrome and FF) i get refreshes or updates on all of them on each visual action being triggered. For example, scrolling on 1 tab triggers a…
Sagiv b.g
  • 30,379
  • 9
  • 68
  • 99
0
votes
1 answer

Can webpack only print emmited files info while webpack rebuilt?

I have use these package to comply webpack HMR: webpack@2.2.1 webpack-dev-middleware@1.10.1 webpack-hot-middleware@2.17.1 webpack stats config: stats: { assetsSort: 'name', children: false, chunks: false, colors: true, …
0
votes
1 answer

Aurelia, running webpack-dev-server --hot throws error on App Hot Update - 'Cannot read property 'status' of undefined'

I downloaded a fresh copy of the Aurelia Navigation Skeleton github repo . I execute the npm run server:dev:hot, which is mapped to cross-env NODE_ENV=development npm run webpack-dev-server -- --inline --progress --profile --watch --hot. The…
0
votes
1 answer

webpack-hot-middleware throws error on HMR update - status.hot is undefined (cannot read property 'status' of undefined)

This is driving me nuts. I'm trying to set up HMR with hapi/hapi-webpack-plugin and webpack-hot-middleware. My set up is an APS.NE MVC 5 application (serving the data) and Aurelia as a front-end framework. HMR seems to start properly: Then when I…
0
votes
1 answer

webpack hot middleware split chunk

I am trying utilise webpack code splitting. Everything looks like its working well, webpack splits the code correct, dependencies, pretty much as expected. Except i can't get it to work with hot-module-replacement. I successfully load…
ap-o
  • 170
  • 1
  • 8
0
votes
1 answer

Can't get webpack hot loader to work with React

I have been trying to get a working version of webpack's hot loader to do live editing for developing an app. After following tutorials and not being able to get live editing working, I decided to start from scratch. I cloned a clean repo of a…
0
votes
2 answers

Updates in my React application aren't taken into account Webpack dev server

I'm trying to set up an environment for my React application using Webpack and Babel. I use JSX to implement components and I would like to leverage live reload. Here is my package.json file: { (...) "scripts": { "start": "webpack-dev-server…
Thierry Templier
  • 198,364
  • 44
  • 396
  • 360
0
votes
1 answer

webpack-dev-server not working

Update current problem : it seems that the webpack hot loader goes wrong,because when i run the following cmd:webpack,it can be built as usual.but when i run ""dev": "webpack-dev-server --color --hot --progress && node ./server.js"".webpack cannot…
1 2 3 4 5
6