Skip to content

HAMUR_E5320: A fromComponent component cannot be imported at build

A fromComponent component cannot be imported at build. Error HAMUR_E5320 belongs to @hamur/content (5301 – 5400).

Message

text
HAMUR_E5320 fromComponent: <path> is not importable at build; export propsSchema from <path>.props.ts
text
HAMUR_E5320 fromComponent: <path><sibling> is not importable at build; export propsSchema from <path>.props.ts

Cause

The component named in fromComponent cannot be imported at build time, as it is a component of a library that needs a compiler.

Fix

Export propsSchema from a <component>.props.ts file beside it.