Skip to content
This is an unmaintained snapshot of the Astro v4 docs. View the latest docs.

Invalid frontmatter injection.

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.

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:

Contribute

What’s on your mind?

Create GitHub Issue

Quickest way to alert our team of a problem.

Community