-
Notifications
You must be signed in to change notification settings - Fork 604
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
Upgrade Gatsby to v3? #808
Comments
Maybe it has something to do with the usage of Maybe a better way would be to use the approach taken by Funny enough, it does appear to recognize the change (below are logs from the browser, which has recognized there is a change):
Seems like the issue may be fundamental in the MDX loader 🤔
Next.js also had to do loader work for Fast Refresh: vercel/next.js#15851 Ahhh, gaearon's comment here is the reason for the hot reloading problems!
The problem is my usage of a custom theme: export { theme } from './theme' So I'll figure out how to strip that (maybe with a custom webpack loader added after Or if I can find a way to override the Not sure where this After diving through a bunch of Actually, maybe a simpler way would be to override the theme globally for all of my slide decks - since I only use a single theme... 🤔 Ended up going with another |
And any calls to <CodeSurfer
steps={[
{
- code: require('!raw-loader!./exampleTypescript.ts').replace(
+ code: require('!raw-loader!./exampleTypescript.ts').default.replace(
/ *\/\/ prettier-ignore\n/g,
'',
),
lang: 'ts',
},
]}
progress={0}
/> |
Hi @jxnblk, would it be possible to bump the version of the
gatsby
dependency to^3.0.0
? It will also require upgradinggatsby-source-filesystem
andgatsby-plugin-react-helmet
.Just trying this out via Yarn Resolutions (via the lines in my
package.json
below), and it appears to be working so far with no other changes.package.json
The text was updated successfully, but these errors were encountered: