Skip to main content

根组件超时

如果你收到错误信息:

🌐 If you get an error message:

A delayRender() "Loading root component" was called but not cleared after 28000ms

你指定了一个 入口点,但它没有调用 registerRoot()

🌐 You have specified an entry point that does not call registerRoot().

在大多数模板中,入口点是 src/index.ts

🌐 In most of the templates, the entry point is src/index.ts.

  • 也许你指定了作品列表(在大多数模板中为 src/Root.tsx)作为替代。
  • 也许你已经指定了你想渲染的组件的文件名。

确保你传递的是调用 registerRoot() 的文件作为入口点。

🌐 Ensure that you are passing the file that calls registerRoot() as the entry point.

在命令行接口中,入口点作为参数传递给 render 命令:

🌐 In the CLI, the entry point is passed as an argument to the render command:

npx remotion render [entry-point]

bundle()deploySite() Node.JS API 中,你通过 entryPoint 属性传递入口点。

🌐 In the bundle() and deploySite() Node.JS apis, you pass the entry point via the entryPoint property.

另请参阅

🌐 See also