Skip to content

HAMUR_E5308: A live collection loader has the wrong shape

A live collection loader has the wrong shape. Error HAMUR_E5308 belongs to @hamur/content (5301 – 5400).

Message

text
HAMUR_E5308 content.config.ts: live collection "<name>": loader must be { name?: string, loadCollection(filter), loadEntry(filter) }

Cause

A live collection's loader is not { name?, loadCollection(filter), loadEntry(filter) }.

Fix

Write the loader in that shape.