Skip to content
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

Hot reload of markdown files not working #94

Closed
rcoedo opened this issue Nov 26, 2015 · 9 comments
Closed

Hot reload of markdown files not working #94

rcoedo opened this issue Nov 26, 2015 · 9 comments

Comments

@rcoedo
Copy link

rcoedo commented Nov 26, 2015

I just installed gatsby for the first time and followed the examples found here. The page loads but when I make some changes to one of the markdown files I need to manually reload the page.

It seems to be some kind of CORS problem.

XMLHttpRequest cannot load http://0.0.0.0:1418/info?t=1448531803680. 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.

Thanks for such a nice tool!

@KyleAMathews
Copy link
Contributor

Oh CORS. I can confirm this on a fresh install of Gatsby in a Linux VM. Can't reproduce in my Mac install. Investigating...

@rcoedo
Copy link
Author

rcoedo commented Nov 27, 2015

I'm using osx El Capitan and node 5.1.0 if that helps. I tried older versions of gatsby and older versions of node but I get the same behaviour.

@syrusakbary
Copy link
Contributor

@KyleAMathews I can reproduce this in OSX too :( node v5.0.0

@KyleAMathews
Copy link
Contributor

Ok, I can reproduce on my mac by deleting node_modules and reinstalling. Which suggests one of our lovely dependencies changed something...

@KyleAMathews
Copy link
Contributor

Arggg... it was this webpack/webpack-dev-server#302

Downgrading webpack-dev-server to 1.12.1 fixed the problem... investigating why sockjs would cause trouble...

@KyleAMathews
Copy link
Contributor

Apparently a known problem webpack/webpack-dev-server#326 and webpack/webpack-dev-server#328 I'll release a new version of Gatsby downgrading webpack-dev-server and do a new release once webpack/webpack-dev-server#328 is merged and I've confirmed it's fixed.

@KyleAMathews
Copy link
Contributor

Fixed in 62fff69

Released 0.7.3

@rcoedo
Copy link
Author

rcoedo commented Nov 30, 2015

Yay! thanks for the fix.

@SpaceK33z
Copy link

@KyleAMathews, webpack-dev-server v1.14.1 has been released, which should fix the issue. It could be interesting to upgrade, since sockjs is much lighter than socket.io (doesn't have native build deps).

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

No branches or pull requests

4 participants