The grid (rendering) ยท console.warn
createStat needs a document; it draws DOM.
Printed by The grid (rendering), prefixed [lattice], since 1.10.0.
Warnings reference › stat.document
- Identifier
stat.document- Raised by
- The grid (rendering)
- Since
- 1.10.0
What happened
The container resolved, but it belongs to no document and there is no global one - a detached node in a non-browser runtime. An inert handle is returned and nothing is drawn.
The fix
Create the stat in a real document. There is nothing for it to do in a headless environment; read the number from grid.statistics instead.
Reference
Covered in full at the API reference.