I am trying to migrate an old Vue2 project to Vue3 and I found this deprecated syntax in one of the components.
if (!this.eventsOnLotsenFinder) {
this.$root.$on('openLotsenFinder', () => {
window.removeEventListener('keyup', this.onWindowKeyUp);
});
it gives me this error on hover
Property '$on' does not exist on type 'ComponentPublicInstance<{}... >
I haven't found an alternative for this in the migration guide.