Shared across modules ยท console.warn
{module}: a '{event}' before-handler threw; the action was cancelled.
Printed by Shared across modules, prefixed [lattice], since 1.53.0.
Warnings reference › *.beforeThrow:*:*
- Identifier
*.beforeThrow:*:*- Raised by
- Shared across modules
- Since
- 1.53.0
What happened
A before-event handler on a module viewer threw. A before-handler decides whether an action happens, so a throw is treated as a veto - the action was cancelled - and is reported rather than swallowed, because a cancel nobody asked for looks exactly like a broken feature. The key names the module, the event and the handler.
The fix
The error is attached to the console line. If you meant to veto, return false (or a promise resolving to false) rather than throwing; if you did not, fix the handler.
The smallest fix
kanban.on('beforeCardMove', (e) => { if (!allowed(e)) return false; });
Reference
Covered in full at the API reference.