deckgl ยท console.warn
the deck.gl module needs the Lattice core; l...
Printed by deckgl, prefixed [lattice], since 1.92.0.
Warnings reference › deckgl:requires-core
- Identifier
deckgl:requires-core- Raised by
- deckgl
- Since
- 1.92.0
What happened
The deck.gl 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 binding no longer inlines the pushdown planner, so with no core there is no grid to pass to bindDeck; 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/deckgl.min.js, so LatticeGrid.createGrid exists before bindDeck is called.
The smallest fix
<script src="lattice-grid.min.js"></script>
<script src="modules/deckgl.min.js"></script>
Reference
Covered in full at the API reference.