Hot reloading is not working
See original GitHub issueEnvironment
Machine: MacBook Pro 15" 2018 Browser: Chrome (version 76.0.3809.132)
Description
I was trying this awesome package in order to create some slides for my tech talk. I’ve followed the instructions on the readme of this repo, so my files are:
- package.json
- deck.mdx
- yarn.lock
- node_modules
which is pretty standard. The start script is
mdx-deck deck.mdx
.
What should happen?
When I run yarn start
, I expect the program to start, build the app and serve it in the 8000
port of my browser. Furthermore, I want to see hot-reloaded changes every time I edit my deck.mdx
What happen instead?
The program creates the first build form the files and serves it correctly on the port 8000
of my browser.
Anyhow, when I change a file I can see from the console that Webpack recompile the code but no changes appear on my browser page.
At this point I launch a refresh of the page, expecting the changes to be shown on the page. One again I’m not able to see them.
In order to actually navigate an updated version of my app I need to stop the program and re-run yarn start
, which is painful.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:4
- Comments:13 (1 by maintainers)
Top GitHub Comments
@NicholasPeretti - I don’t think it’s a git issue as my repro on #474 is on Github! Not VSCode issue either as I just moved to an entirely different machine that only has Vim on it, and I’m getting the same issue there.
Nope.
I’ve tried to delete both the
node_modules
directory and theyarn.lock
file (I use yarn). Then I’ve typed:yarn add gatsby@2.14.7 --exact
yarn add mdx-deck
After that I’ve tried to start the project with
yarn start
and I have the same problem described in #474