Back to Withastro

Astro couldn't find the route to rewrite, or if was found but it emitted an error during the rendering phase.

src/content/docs/en/reference/errors/rewrite-encountered-an-error.mdx

latest460 B
Original Source

import DontEditWarning from '~/components/DontEditWarning.astro'

<DontEditWarning />

:::caution[Deprecated] This error cannot be emitted by Astro anymore :::

RewriteEncounteredAnError: The route ROUTE that you tried to render doesn't exist, or it emitted an error during the rendering phase. STACK ? STACK : ''.

What went wrong?

The user tried to rewrite using a route that doesn't exist, or it emitted a runtime error during its rendering phase.