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.

Gatsby Hot Reload not working with MDX

See original GitHub issue

Description

Hot reload / browser refresh does not work with basic MDX setup.

Steps to reproduce

Clone repo gatsby-minimal-mdx-hot-reload-bug-reproduction.

gatsby develop

Edit src/pages/index.mdx

Expected result

Browsers will not refresh. Sometimes even manual browser reloads will not reflect the changes.

Environment

System:
  OS: macOS 10.15.7
  CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
  Shell: 5.7.1 - /bin/zsh
Binaries:
  Node: 14.15.0 - ~/.nvm/versions/node/v14.15.0/bin/node
  npm: 7.6.1 - ~/.nvm/versions/node/v14.15.0/bin/npm
Languages:
  Python: 2.7.16 - /usr/bin/python
Browsers:
  Chrome: 89.0.4389.82
  Firefox: 86.0
  Safari: 14.0.3
npmPackages:
  gatsby: ^3.0.1 => 3.0.3 
  gatsby-plugin-mdx: ^2.0.0 => 2.0.0 
  gatsby-source-filesystem: ^3.0.0 => 3.0.0 
npmGlobalPackages:
  gatsby-cli: 3.0.0

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:9
  • Comments:13 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
gchallencommented, Apr 7, 2021

Is this on the roadmap to being fixed? I’m concerned that Gatsby has reached 3.2 without this being addressed. This is a must-have feature for anyone authoring content in MDX.

1reaction
LekoArtscommented, May 12, 2021

This was fixed with gatsby 3.5.0 and gatsby-plugin-mdx 2.5.0

Read more comments on GitHub >

github_iconTop Results From Across the Web

Gatsby Hot Reload not working with MDX - Rysolv
Hot reload / browser refresh does not work with basic MDX setup. Steps to reproduce. Clone repo gatsby-minimal-mdx-hot-reload-bug-reproduction.
Read more >
Gatsby — Hot reload not working with .MDX generated pages
Gatsby hot reloading is not working when modifying CSS properties from Components that lives in generated .MDX pages.
Read more >
Troubleshooting Common Errors - Gatsby
This guide is meant as a reference for common errors that have tripped up other Gatsby users. Problems with the cache. Running a...
Read more >
Hot reloading not working : r/gatsbyjs - Reddit
It may have something to do with where the sass is being imported. Are they directly in the component, or outside the layout,...
Read more >
Goodbye Gatsby, Hello Next - An Idiosyncratic Blog
I could decide what format my content would live in, and what framework I would be ... But, like in any relationship, problems...
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