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