Skip to content

Cannot read property 'group' of undefined #276

@pgrm

Description

@pgrm

I'm submitting a...


[ ] Regression (a behavior that used to work and stopped working in a new release)
[x] Bug report  
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request

What is the current behavior?

I've found the error Cannot read property 'group' of undefined logged in my sentry errors. The error is thrown from this line of code:

this.console.group(reason);

That means that this.console should be undefined.

The stack trace is coming from

verifyOutput(output, this.errorReporter);
and inside here from
reportInvalidActions(output, reporter);

I'm importing EffectsModule.forRoot(...) exactly once in my application, in my main module, so I don't quite understand how this.console could be undefined.

Expected behavior:

Not getting that error, instead seeing the log output

Minimal reproduction of the problem with instructions:

Unfortunately I don't quite understand how to get into that part of code, and therefore couldn't reproduce it.

Version of affected browser(s),operating system(s), npm, node and ngrx:

  • Browser: Chrome 60.0.3112
  • OS: Windows 10

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions