htmx ยท console.warn
autoInitKanban: no Kanban factory registered...
Printed by htmx, prefixed [lattice], since 1.93.0.
Warnings reference › htmx:kanban-no-factory
- Identifier
htmx:kanban-no-factory- Raised by
- htmx
- Since
- 1.93.0
What happened
The htmx adapter does not inline the Kanban engine, so it needs a factory: one registered with registerKanban(), or the script-tag global the Kanban module's UMD build publishes (globalThis.LatticeGridKanban.createKanban). Neither was present, so the element was left un-mounted.
The fix
Load the Kanban module and call registerKanban(createKanban), or load its UMD build as a <script> tag so globalThis.LatticeGridKanban.createKanban exists.
The smallest fix
import { registerKanban } from '@toclocoinc/lattice-grid/modules/htmx';
import { createKanban } from '@toclocoinc/lattice-grid/modules/kanban';
registerKanban(createKanban);
Reference
Covered in full at the API reference.