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

Uncaught ReferenceError: HowlerGlobal is not defined #143

Open
mazhar-kv opened this issue Nov 6, 2023 · 3 comments
Open

Uncaught ReferenceError: HowlerGlobal is not defined #143

mazhar-kv opened this issue Nov 6, 2023 · 3 comments

Comments

@mazhar-kv
Copy link

Techstack

React JS with VIte

Facing this Uncaught ReferenceError: HowlerGlobal is not defined.

Can anyone help me out with this?

@Stenerson
Copy link
Collaborator

Hi @mazhar-kv, I'm not familiar with Vite so I won't be much help here but I think you'll need to provide more information for anyone else to be helpful.

Based on my knowledge of this library I think this is unlikely an issue with react-howler and more likely an issue with your configuration or build. I'll let the issue sit open for a while in case someone see it that's experienced the issue previously.

@ashaytiwari
Copy link

I am having the same issue with "react-howler": "^5.2.0",

@ashaytiwari
Copy link

ashaytiwari commented Jan 17, 2025

I managed to resolve this issue for my project configuration.

The issue was related to the Vite configuration. To fix it, I added the following snippet to my vite.config.js file:
export default defineConfig({ // other Vite configurations define: { global: 'window', }, });

After making this change, the problem was resolved for me. I hope this helps anyone else facing the same issue.

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

3 participants