React + Vite: TypeError: HowlConstructor.current is not a constructor
rostyslavDoskochynskiy opened this issue · comments
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.
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
But I see
You can use https://www.npmjs.com/package/@viveljs/use-sound as a workaround until the creator releases the fix