AI ยท console.warn
ai.askBar() needs a DOM element to mount into; none was given and there is no document.
Printed by AI, prefixed [lattice], since 1.43.0.
Warnings reference › ai:askbar:no-el
- Identifier
ai:askbar:no-el- Raised by
- AI
- Since
- 1.43.0
What happened
The ask-your-data bar had nowhere to mount, for the same reasons as the insights panel: no element argument, no config.element, or an argument with no owner document. Nothing was mounted.
The fix
Pass the element, or set element on the controller's config.
The smallest fix
ai.askBar(document.querySelector('#askbar'));
Reference
Covered in full at the API reference.