Code Example: sending chat messages to anyone from backend

Question.
which imports (if any) should be used in events.js in order to make the below chat message handler work.

export function wixChat_onMessage(event) {
console.log(chat msg channelId: ${event.channelId})
}
currently is does not work and I get the below message in the log:

The last argument to .catch() must be a function, got TypeError: logger(…).debug is not a function

If I remove the event handler - the error message goes away.

thanks