Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

debug.js no longer works in the browser #23

Closed
stereosteve opened this Issue · 4 comments

5 participants

@stereosteve

Adding debug.js produces this error:

Uncaught ReferenceError: module is not defined 

Seems to be related to recent component changes.

@jaketrent

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

@tj
Owner
tj commented

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

@arjunmehta

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.

@TooTallNate
Owner

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.