debug.js no longer works in the browser #23

Closed
stereosteve opened this Issue Oct 10, 2012 · 4 comments

Comments

Projects
None yet
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?

Owner

tj commented May 29, 2013

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.

Owner

TooTallNate commented Jun 1, 2014

See #101.

@TooTallNate TooTallNate closed this Jun 1, 2014

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