sound
sound copied to clipboard
TypeError: HowlConstructor.value is not a constructor
I just tried to use vueuse/sound in my Nuxt 3 project like so:
const {play} = useSound("/sounds/alert.mp3");
I am getting the following error:
Uncaught (in promise) TypeError: HowlConstructor.value is not a constructor
which is raised here.
@vueuse/sound version: 2.0.0
The howler version installed by my package manager is: 2.2.3.
I just tried to use vueuse/sound in my Nuxt 3 project like so:
const {play} = useSound("/sounds/alert.mp3");I am getting the following error:
Uncaught (in promise) TypeError: HowlConstructor.value is not a constructorwhich is raised here.
@vueuse/soundversion: 2.0.0 Thehowlerversion installed by my package manager is: 2.2.3.
There's an opened PR about this: https://github.com/vueuse/sound/pull/29
The PR seems to be merged but I'm still getting an issue on howler with Nuxt 3
I'm getting
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'Howl')
Referring to this line.
HowlConstructor.value = howler.default.Howl;
Same here @itzaks
@louia my workaround was to basically download and put the this repo under modules and import it from there for now