Skip to content


Subversion checkout URL

You can clone with
Download ZIP


debug.js no longer works in the browser #23

stereosteve opened this Issue · 4 comments

5 participants


Adding debug.js produces this error:

Uncaught ReferenceError: module is not defined 

Seems to be related to recent component changes.


Still seeing this. Any wisdom on how to get around this besides modifying the lib?

tj commented

we need a --standalone build for non-component people I suppose


Something I did because I didn't want to modify the library, before importing debug.js:

var module = function(){};
// or var module = {};

This could mess up other things though. Not optimal. Otherwise if I comment out module.exports = debug; from the lib it also works.

// module.exports = debug;

I tried using browserify but that seems overkill and it didn't work anyway.


See #101.

@TooTallNate TooTallNate closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.