How to fix the error?

Hello everyone, I get the error Cannot read properties of undefined (reading ‘pushEvent’) at Tt.logPanelEvent (panelOptionsLogger.ts:41:14) when I create custom visualizations, please tell me how to fix it. Thanks in advance!

@bormanm798 This question might the same as in Why am I getting the Cannot read properties of undefined (reading 'pushEvent') error?