Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: HowlConstructor.value is not a constructor #32

Open
fabiangfd opened this issue Jan 13, 2023 · 4 comments
Open

TypeError: HowlConstructor.value is not a constructor #32

fabiangfd opened this issue Jan 13, 2023 · 4 comments

Comments

@fabiangfd
Copy link

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.

@imrandomguy56
Copy link

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.

There's an opened PR about this: #29

@itzaks
Copy link

itzaks commented Mar 1, 2023

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;

@louia
Copy link

louia commented Jun 13, 2023

Same here @itzaks

@iamroi
Copy link

iamroi commented Jul 6, 2023

@louia my workaround was to basically download and put the this repo under modules and import it from there for now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants