Skip to content

HAMUR_E5309: A live collection uses fromComponent

A live collection uses fromComponent. Error HAMUR_E5309 belongs to @hamur/content (5301 – 5400).

Message

text
HAMUR_E5309 content.config.ts: live collection "<name>": fromComponent is build-time only; pass the component's propsSchema itself

Cause

A live collection's schema comes from fromComponent, which reads at build time only.

Fix

Pass the component's propsSchema itself.