minilog icon indicating copy to clipboard operation
minilog copied to clipboard

Probem with Minilog & formatters in the Browser

Open nevf opened this issue 12 years ago • 1 comments

I'm trying to setup Minilog to use in the Browser as follows:

    Minilog
      .pipe(Minilog.suggest)                  // filter
      .pipe(Minilog.backends.browser.color)   // also tried .formatColor
      .pipe(Minilog.backends.browser);        // backend

and get:

Uncaught TypeError: Cannot call method 'emit' of undefined   minilog.js:15

If I leave the above code out I do get basic minilog working ok. I am loading minilog using require.js in case that is relevant.

nevf avatar Jul 20 '13 01:07 nevf

Bumped into the same thing. If there's an inconsistency between browser vs node implementations which shouldn't be there, would be great to have a fix for that. Otherwise, if the implementations are different on purpose, the documentation could be improved to clarify this.

harriha avatar Jan 15 '16 16:01 harriha