Closed
Description
Gatsby version: 0.12.46
Node version: 6.4.0
OS version: OSX El Capitan 10.11.6
Some hours ago I noticed that the hot module reloading (HMR) wasn't working, when I run npm run develop
to start developing and make a change in my component, I get this error and warning in the chrome console:
Error:
XMLHttpRequest cannot load http://0.0.0.0:8000/032760b3db0a507954fb.hot-update.json. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8000' is therefore not allowed access. The response had HTTP status code 404.
Warning:
[HMR] Update check failed: Error: Manifest request to http://0.0.0.0:8000/032760b3db0a507954fb.hot-update.json timed out.
at XMLHttpRequest.request.onreadystatechange (http://localhost:8000/bundle.js?t=1493255843490:34:23)
I did some research and it seems that this issue has to do with webpack-dev-server
as mentioned here.
A webpack-dev-server/middleware security issue found some days ago, and I think the update breaks some configuration on various projects.
I found these disscussion in the webpack-dev-server github issues as well:
- Hot module / hrm not working anymore?
- --host 0.0.0.0 Not working
- Host checking breaks multi-host proxy
It's strange, yesterday I was working with HMR without any problems.
Is anyone facing the same issue?
Metadata
Metadata
Assignees
Labels
No labels