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

React + Vite: TypeError: HowlConstructor.current is not a constructor #107

Open
rostyslavDoskochynskiy opened this issue May 4, 2022 · 2 comments

Comments

@rostyslavDoskochynskiy
Copy link

rostyslavDoskochynskiy commented May 4, 2022

Hey guys. I have moved my react project from CRA to Vite and I have next error what you see on screenshot

I've read this issue, but this fix didn't help to resolve it.
Please let me know, how it can be fixed, otherwise I will have to rebuild significant amount of code.

Screenshot 2022-05-04 at 17 56 36

Screenshot 2022-05-04 at 17 56 29

@devonpmack
Copy link

devonpmack commented Aug 29, 2022

I'm also seeing this issue. Looks like the fix hasn't been released yet.

The code should look like this https://github.com/joshwcomeau/use-sound/blob/master/src/index.ts#L42

image

But I see

image

@devonpmack
Copy link

You can use https://www.npmjs.com/package/@viveljs/use-sound as a workaround until the creator releases the fix

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

2 participants