[]previous and next page

PrerenderError (@shadow-js/dusk/static)

Thrown for a path that cannot be rendered to a file, or a page that did not render.

Thrown for a path that cannot be rendered to a file, or a page that did not render.

Import#

ts
import { PrerenderError } from "@shadow-js/dusk/static";

Signature#

ts
class PrerenderError extends Error

Members#

Name Type Description
code readonly code: string

Examples#

ts
try { await prerender(options); } catch (error) { if (error instanceof PrerenderError) console.log(error.code); }