Skip to content

HAMUR_E6104: An og-image template file exports no template

An og-image template file exports no template. Error HAMUR_E6104 belongs to @hamur/og-image (6101 – 6200).

Message

text
HAMUR_E6104 og-image: <path> must export default defineOgTemplate(…)
text
HAMUR_E6104 og-image: <path> must export a default component

Cause

A template file does not have a default export: defineOgTemplate(…) in a .ts file, a component in the other files.

Fix

Export the template as default.