Rex-plugins: VirtualJoyStick.setEventEmitter Errors

I hv the following setup , Vue2 loading Phaser3 in a div with phaser3-rex-plugins loading vJoystick

I can load vJoystick with Phaser3 standalone but when loaded from Vue, it gives the below errors…

vJoystick loaded in world.js

Any points on how to resolve this ?

Thanks

A minimal repo here. phaser is game folder :

EventEmitterMethods.js?56de:4 Uncaught TypeError: Cannot read properties of undefined (reading 'EventEmitter')
    at VirtualJoyStick.setEventEmitter (EventEmitterMethods.js?56de:4:1)
    at new VirtualJoyStick (VirtualJoyStick.js?b403:15:1)
    at VirtualJoyStickPlugin.add (virtualjoystick-plugin.js?38a6:15:1)
    at world.create (world.js?5e60:103:1)
    at SceneManager.create (phaser.js?d4ef:100338:1)
    at SceneManager.bootScene (phaser.js?d4ef:100218:1)
    at SceneManager.start (phaser.js?d4ef:100926:1)
    at SceneManager.processQueue (phaser.js?d4ef:100024:1)
    at SceneManager.update (phaser.js?d4ef:100278:1)
    at Game.step (phaser.js?d4ef:162805:1)

Someone forked my repo and fix it within Vue components

The codes as below :