question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hot reloading is not working

See original GitHub issue

Environment

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:closed
  • Created 4 years ago
  • Reactions:4
  • Comments:13 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
jonsherrardcommented, Sep 12, 2019

@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.

1reaction
NicholasPeretticommented, Sep 13, 2019

Nope.

I’ve tried to delete both the node_modules directory and the yarn.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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Hot Reload is not working in my React App - Stack Overflow
Hot Reload is not working in my React App · This does happen sometimes. Do npm install and try adding some code. ·...
Read more >
Hot reload not working - Visual Studio Feedback
I'm trying to use Hot Reload on Android Emulador, but when I do any change in XAML file, the app doesn't update. Looking...
Read more >
Troubleshooting XAML Hot Reload - Visual Studio (Windows)
If Hot Reload is not available · Verify that XAML Hot Reload is enabled · Verify that you use Start Debugging rather than...
Read more >
Hot Reload stopped working with React "^17.0.1" · Issue #9904
After upgrading to CRA 5.0 WebSocket used for hot reloading could not be established, and after comparing with fresh new React project created ......
Read more >
Hot Reload not working in React 17.0.3 - Code with Mosh Forum
Hi, I have recently created a new project with create-react-app. Also, I am following Mosh's Mastering React course and according to it, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found