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