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

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:

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

Thank you