Skip to content

Invalid prerender export.

Example error messages:
InvalidPrerenderExport: A prerender export has been detected, but its value cannot be statically analyzed.

The prerender feature only supports a subset of valid JavaScript — be sure to use exactly export const prerender = true so that our compiler can detect this directive at build time. Variables, let, and var declarations are not supported.

Contribute

What’s on your mind?

Create GitHub Issue

Quickest way to alert our team of a problem.

Community
京ICP备15031610号-99