Back to Withastro

Invalid frontmatter injection.

src/content/docs/en/reference/errors/invalid-frontmatter-injection-error.mdx

latest597 B
Original Source

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

<DontEditWarning />

InvalidFrontmatterInjectionError: A remark or rehype plugin attempted to inject invalid frontmatter. Ensure "astro.frontmatter" is set to a valid JSON object that is not null or undefined.

What went wrong?

A remark or rehype plugin attempted to inject invalid frontmatter. This occurs when "astro.frontmatter" is set to null, undefined, or an invalid JSON object.

See Also: