Skip to content

Probem with Minilog & formatters in the Browser #11

Open

Description

@nevf

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.

Activity

  1. harriha commented on Jan 15, 2016

    @harriha

    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.

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