Lattice Grid Buy a licence

KPI ยท console.warn

the KPI module needs the Lattice core; load ...

Printed by KPI, prefixed [lattice], since 1.92.0.

Warnings reference › kpi:requires-core

Identifier
kpi:requires-core
Raised by
KPI
Since
1.92.0

What happened

The KPI module's script-tag (UMD) build was loaded on a page whose LatticeGrid global is missing, so the core's own script build was not loaded first. The KPI panel no longer inlines the pushdown planner, so with no core there is no grid to bind a tile to; the API this load publishes cannot be used until the core is loaded. The warning is raised once and the load proceeds.

The fix

Load the core's script build (e.g. lattice-grid.min.js) before modules/kpi.min.js, so LatticeGrid.createGrid exists before createKPI is called.

The smallest fix

<script src="lattice-grid.min.js"></script>
<script src="modules/kpi.min.js"></script>

Reference

Covered in full at the API reference.