xdissent / node-alsa

ALSA bindings for Node.js
MIT License
22 stars 9 forks source link

Cannot read property 'prototype' of undefined #2

Open vincentsaluzzo opened 11 years ago

vincentsaluzzo commented 11 years ago

Hi ,

I have try your example in 'Usage' section to test your lib.

But it doesn't work for me. Here the error :

/home/pi/babycamble/node_modules/alsa/lib/stream.js:4
unction ctor() { this.constructor = child; } ctor.prototype = parent.prototype
                                                                ^
TypeError: Cannot read property 'prototype' of undefined
    at __extends (/home/pi/babycamble/node_modules/alsa/lib/stream.js:4:197)
    at /home/pi/babycamble/node_modules/alsa/lib/stream.js:13:3
    at Object.<anonymous> (/home/pi/babycamble/node_modules/alsa/lib/stream.js:61:3)
    at Module._compile (module.js:449:26)
    at Object.Module._extensions..js (module.js:467:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:362:17)
    at require (module.js:378:17)
    at Object.<anonymous> (/home/pi/babycamble/node_modules/alsa/lib/index.js:4:10)

Any idea ?