Howler.js: ReferenceError: Audio is not defined

Created on 19 Jun 2019  路  3Comments  路  Source: goldfire/howler.js

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

Most helpful comment

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

All 3 comments

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

Latest is v2.1.2, which is before https://github.com/goldfire/howler.js/commit/808fe3421962b04007cc7e58b951c89572fba4ab
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

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Friksel picture Friksel  路  4Comments

sibelius picture sibelius  路  3Comments

distante picture distante  路  5Comments

joshbruce picture joshbruce  路  4Comments

SandMoshi picture SandMoshi  路  3Comments