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 Reloading not working out of the box (with start template)? #20339

Closed
aidan-rypens opened this issue Dec 30, 2019 · 10 comments
Closed

Hot Reloading not working out of the box (with start template)? #20339

aidan-rypens opened this issue Dec 30, 2019 · 10 comments
Labels
stale? Issue that may be closed soon due to the original author not responding any more. type: question or discussion Issue discussing or asking a question about Gatsby

Comments

@aidan-rypens
Copy link

Steps to reproduce

Gatsby starter template & Gatsby develop

Expected result

On changing the styling / content of a component the webpage should refresh itself.

Actual result

Page is not refreshed. Manually pressing reload updates the content.

Environment

System:
OS: Windows 10 10.0.18362
CPU: (12) x64 Intel(R) Core(TM) i7-8850H CPU @ 2.60GHz
Binaries:
Node: 12.9.1 - C:\Program Files\nodejs\node.EXE
Yarn: 1.17.3 - C:\Users\arypens\AppData\Roaming\npm\yarn.CMD
npm: 6.10.2 - C:\Program Files\nodejs\npm.CMD
Browsers:
Edge: 44.18362.387.0
npmPackages:
gatsby: ^2.18.12 => 2.18.12

After reading through the documentation, hot reloading seems to be shipped with Gatsby? When opening the developer tools in Chrome I do see:
' gatsby react-hot-loader react-🔥-dom patch is not detected '. Do you have to install something locally?

@gatsbot gatsbot bot added the type: question or discussion Issue discussing or asking a question about Gatsby label Dec 30, 2019
@aidan-rypens aidan-rypens changed the title Hot Reloading not working? Hot Reloading not working out of the box (with start template)? Dec 30, 2019
@aidan-rypens
Copy link
Author

It does work on my home computer and laptop.

@jonniebigodes
Copy link

@AidanRRR see #11934 if it helps

@aidan-rypens
Copy link
Author

@AidanRRR see #11934 if it helps

It does not.. Might be a problem with my computer. Thanks for the tip though!

@sidharthachatterjee
Copy link
Contributor

Hot reload should (and does) work just fine. Just tried it out.

@AidanRRR Does updating to the latest version of gatsby help?

@github-actions
Copy link

github-actions bot commented Feb 6, 2020

Hiya!

This issue has gone quiet. Spooky quiet. 👻

We get a lot of issues, so we currently close issues after 30 days of inactivity. It’s been at least 20 days since the last update here.
If we missed this issue or if you want to keep it open, please reply here. You can also add the label "not stale" to keep this issue open!
As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. Check out gatsby.dev/contribute for more information about opening PRs, triaging issues, and contributing!

Thanks for being a part of the Gatsby community! 💪💜

@github-actions github-actions bot added the stale? Issue that may be closed soon due to the original author not responding any more. label Feb 6, 2020
@github-actions
Copy link

Hey again!

It’s been 30 days since anything happened on this issue, so our friendly neighborhood robot (that’s me!) is going to close it.
Please keep in mind that I’m only a robot, so if I’ve closed this issue in error, I’m HUMAN_EMOTION_SORRY. Please feel free to reopen this issue or create a new one if you need anything else.
As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. Check out gatsby.dev/contribute for more information about opening PRs, triaging issues, and contributing!

Thanks again for being part of the Gatsby community! 💪💜

@aidan-rypens
Copy link
Author

Updated all the packages, still not working.

@lestgabo
Copy link

lestgabo commented Aug 20, 2020

@AidanRRR
What I did was do gatsby build
I dont know why, but it makes hot reloading work on gatsby develop after doing gatsby build.
source: #13918 (comment)

@holylander
Copy link

Hi friends!

Im running gatsby develop on windows. After trying many things, including wsl, npm clenaup etc, I realized that my antivirus sophos was blocking the webpack hot reload socket __webpack_hmr.

All I had to do is to disable the antivirus for a while. ( You are free to uninstall it or maybe change to another one ).

hope it works for you ;)

@carljustineoyales
Copy link

having the same problem firefox displays an HMR error

image

however running it in incognito in chrome fixed the issue. I'm new to gatsby anyone here why is it working only in incognito?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale? Issue that may be closed soon due to the original author not responding any more. type: question or discussion Issue discussing or asking a question about Gatsby
Projects
None yet
Development

No branches or pull requests

6 participants