Can not load plugins (import { PanelEvents } from '@grafana/data')<-- both have a problem with this

Hello,
I have a problem with using two plugins, and I manage to problem in both to the same line of code:
import { PanelEvents } from '@grafana/data'

I think that PanelEvents is not really loaded, and both errors state that it is undefined and they can not access a property of it.

These are the two github issues that I opened:
https://github.com/briangann/grafana-datatable-panel/issues/97
https://github.com/grafana/grafana-polystat-panel/issues/78#issuecomment-627545686

But I would appreciate any help direction in debugging it myself.

Thank you