dashboard ยท console.warn
createDashboard: the first argument is not a...
Printed by dashboard, prefixed [lattice], since 1.77.0.
Warnings reference › dashboard:el
- Identifier
dashboard:el- Raised by
- dashboard
- Since
- 1.77.0
What happened
The dashboard mounts its layout on the element it is given, and what it was given has no appendChild (an id string or a selector, say). Nothing was built, and dashboard.problems() names it.
The fix
Pass the element itself.
The smallest fix
createDashboard(document.querySelector('#dash'), spec, factories);
Reference
Covered in full at the API reference.