Lattice Grid Buy a licence

AI ยท console.warn

"{name}" is not an AI event; expected one of {list}.

Printed by AI, prefixed [lattice], since 1.42.0.

Warnings referenceai:event:*

Identifier
ai:event:*
Raised by
AI
Since
1.42.0

What happened

ai.on() was given an event name the AI controller never emits, so the handler can never run. The subscription is still made; the typo is named.

The fix

Use one of the names in the message - narrative, query or error.

The smallest fix

ai.on('narrative', ({ text }) => show(text));

Reference

Covered in full at the API reference.