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: Audio is not defined #1191

Closed
Glutch opened this issue Jun 19, 2019 · 3 comments
Closed

ReferenceError: Audio is not defined #1191

Glutch opened this issue Jun 19, 2019 · 3 comments

Comments

@Glutch
Copy link

Glutch commented Jun 19, 2019

npm install howler

test.js

const {Howl, Howler} = require('howler')

var sound = new Howl({
  src: ['hello.wav']
})

sound.play()

output:

/node_modules/howler/dist/howler.js:409
      var testPlay = new Audio().play();
                     ^
ReferenceError: Audio is not defined

node -v 12.4.0
MacOS

@ehiskes
Copy link

ehiskes commented Oct 24, 2019

Issue closed, but it is still happening as of 10/21/2019. How to fix it?

@nathanfranke
Copy link

nathanfranke commented Oct 24, 2019

Latest is v2.1.2, which is before 808fe34
To use the updated version, you'll have to figure out how to build. npm build does not work and there is no documentation about building, so good luck

Edit: Nevermind, this error is still present in the master branch

@MoffKalast
Copy link

MoffKalast commented Nov 14, 2019

Still an issue. Does this library not work with node at all?

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

4 participants