🎥 Make videos programmatically with React
new article: how to fix broken fast refresh
Jonny Burger1a9ee1358d17
diff --git a/packages/docs/docs/troubleshooting/broken-fast-refresh.md b/packages/docs/docs/troubleshooting/broken-fast-refresh.mdnew file mode 100644index 0000000000..13e4aa49ac--- /dev/null+++ b/packages/docs/docs/troubleshooting/broken-fast-refresh.md@@ -0,0 +1,16 @@+---+image: /generated/articles-docs-troubleshooting-broken-fast-refresh.png+id: broken-fast-refresh+title: Fast Refresh not working+crumb: "Troubleshooting"+---++If the Remotion Preview does not update after you have updated your file, it is usually due to one of two reasons:++<Step>1</Step> Preview server disconnected: This happens when you quit the process that was started when running <code>npx remotion preview</code>, usually using <code>Ctrl+C</code> or by quitting the terminal. <br/><br/>++<Step>2</Step> Mismatched capitalization in the filenames: Ensure that the capitalization of filenames is correct in imports. For example, if your filename is <code>MyComp.tsx</code>, but you import it using <code>{'import {MyComp} from "./myComp.tsx"'}</code>, Fast Refresh may break. <br/><br/>++:::note+This is a bug in Webpack for which [we've filed an issue](https://github.com/webpack/watchpack/issues/228).+:::diff --git a/packages/docs/sidebars.js b/packages/docs/sidebars.jsindex 2ac7224e1c..f95c34c54d 100644--- a/packages/docs/sidebars.js+++ b/packages/docs/sidebars.js@@ -484,6 +484,7 @@ module.exports = {"troubleshooting/defaultprops-too-big","troubleshooting/could-not-be-parsed-as-a-value-list","troubleshooting/player-flicker",+ "troubleshooting/broken-fast-refresh",],},{diff --git a/packages/docs/src/data/articles.ts b/packages/docs/src/data/articles.tsindex d8d2b5c926..f02f2e1e72 100644--- a/packages/docs/src/data/articles.ts+++ b/packages/docs/src/data/articles.ts@@ -2017,6 +2017,13 @@ export const articles = [compId: "articles-docs-troubleshooting-background-image",crumb: "Common mistakes",},+ {+ id: "broken-fast-refresh",+ title: "Fast Refresh not working",+ relativePath: "docs/troubleshooting/broken-fast-refresh.md",+ compId: "articles-docs-troubleshooting-broken-fast-refresh",+ crumb: "Troubleshooting",+ },{id: "troubleshooting/could-not-be-parsed-as-a-value-list",title: "The source provided could not be parsed as a value list",diff --git a/packages/docs/static/generated/articles-docs-troubleshooting-broken-fast-refresh.png b/packages/docs/static/generated/articles-docs-troubleshooting-broken-fast-refresh.pngnew file mode 100644index 0000000000..4ca016efb8Binary files /dev/null and b/packages/docs/static/generated/articles-docs-troubleshooting-broken-fast-refresh.png differ