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

ReferenceError: HowlerGlobal is not defined (Parcel 2) #116

Open
tpudel opened this issue Sep 5, 2022 · 1 comment
Open

ReferenceError: HowlerGlobal is not defined (Parcel 2) #116

tpudel opened this issue Sep 5, 2022 · 1 comment

Comments

@tpudel
Copy link

tpudel commented Sep 5, 2022

Just randomly started getting this error from parcel after we updated the parcel package to v2.
Posting here incase anyone has anymore information on it or also runs into this.
Updating the howler version fixed it for me!

My current workaround:
I added howler with the lastest version (2.2.3) and used that package version for use-sound's howler import and it seemingly fixes this.

within package.json:
"alias": { "howler": "howler/dist/howler.core.min.js" }

image

@jamesshapiro
Copy link

Thanks, found this super helpful! In addition to the steps you took here, I also had to add a .parcelrc file. Full steps here: https://stackoverflow.com/questions/78337527/how-to-get-the-use-sound-hook-working-with-parcel#78337527

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