webpack-dev-server icon indicating copy to clipboard operation
webpack-dev-server copied to clipboard

hot module replacement `__webpack_hash__ is not defined` on reload

Open hellatan opened this issue 11 years ago • 3 comments

Following the webpack dev server guide with hot module replacement using the inline script (<script src="http://localhost:8080/webpack-dev-server.js"></script>), it seems like the hot loader is throwing this js error after doing a rebuild:

Uncaught ReferenceError: __webpack_hash__ is not defined

any clue what is going on ?

hellatan avatar Dec 31 '14 14:12 hellatan

Are you using the up-to-date versions of webpack and webpack-dev-server?

sokra avatar Jan 02 '15 13:01 sokra

@sokra i just tried this on a different computer and it seems to work. I'll have to see which versions I have loaded on my home computer to see. These are the versions I'm using after doing a fresh npm install on my work computer:

  • webpack v1.4.14
  • webpack-dev-server v1.7.0

hellatan avatar Jan 02 '15 16:01 hellatan

thanks @sokra. my home version was super old.

hellatan avatar Jan 04 '15 03:01 hellatan