Skip to main content

快速刷新无法工作

如果在更新文件后 Remotion Studio 没有更新,通常是由于以下两个原因之一:

🌐 If the Remotion Studio does not update after you have updated your file, it is usually due to one of two reasons:

工作室服务器断开连接:当你退出运行 npx remotion studio 时启动的进程时,会发生这种情况,通常是使用 Ctrl+C 或退出终端。

文件名的大小写不匹配:确保导入时文件名的大小写正确。例如,如果你的文件名是 MyComp.tsx,但你使用 import {MyComp} from "./myComp.tsx" 进行导入,Fast Refresh 可能会出问题。

note

这是 Webpack 的一个错误,我们已经为此提交了一个问题