Skip to content

utils.js cannot set property 'prototype' of undefined #21

Description

@gilbertbw

When runing tests i get this error:

domain.js:66
    throw er;
          ^
TypeError: Cannot read property 'prototype' of undefined
    at Object.exports.inherits (util.js:538:43)
    at Object.<anonymous> (/Users/gilbert/Downloads/node-libspotify-master/lib/Player.js:31:6)
    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> (/Users/gilbert/Downloads/node-libspotify-master/lib/libspotify.js:3:18)
    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> (/Users/gilbert/Downloads/node-libspotify-master/test/test-000-config.js:2:10)
    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 /Users/gilbert/Downloads/node-libspotify-master/node_modules/nodeunit/lib/nodeunit.js:75:37
    at _concat (/Users/gilbert/Downloads/node-libspotify-master/node_modules/nodeunit/deps/async.js:508:13)
    at async.forEachSeries.iterate (/Users/gilbert/Downloads/node-libspotify-master/node_modules/nodeunit/deps/async.js:118:13)
    at async.forEachSeries.iterate (/Users/gilbert/Downloads/node-libspotify-master/node_modules/nodeunit/deps/async.js:129:25)
    at _concat (/Users/gilbert/Downloads/node-libspotify-master/node_modules/nodeunit/deps/async.js:510:17)
    at exports.runModule (/Users/gilbert/Downloads/node-libspotify-master/node_modules/nodeunit/lib/core.js:164:9)
    at _concat (/Users/gilbert/Downloads/node-libspotify-master/node_modules/nodeunit/deps/async.js:513:13)
    at async.forEachSeries (/Users/gilbert/Downloads/node-libspotify-master/node_modules/nodeunit/deps/async.js:114:20)
npm ERR! Test failed.  See above for more details.
npm ERR! not ok code 0

I get a very similar error when running node play.js in the examples folder

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions