Skip to content

Error with progress bar : Cannot read property 'name' of undefined #10171

@ghost

Description

Bug, feature request, or proposal:

Bug

Description

I'm sorry for posting my message here, but I can't seem to find any help online. I also can't seem to reproduce the issue on a stackblitz, but I do have the error on my project, and I thought that you could enlighten me on that issue.

Let me explain :

  • I have a progress bar in app.component.html with a *ngIf="loading". App component has a router outlet and displays other components.
  • The value of loading is changed at every http request through a BehaviorSubject (app component is subscribing to that subject)
  • I go from the route / to /profile. On profile init, I make a request, changing the value of loading.

Then, I get this error message :

ERROR TypeError: Cannot read property 'name' of undefined
    at checkBindingNoChanges (core.js:9912)
    at checkNoChangesNodeInline (core.js:13961)
    at checkNoChangesNode (core.js:13935)
    at debugCheckNoChangesNode (core.js:14764)
    at debugCheckDirectivesFn (core.js:14666)
    at Object.eval [as updateDirectives] (AppComponent.html:9)
    at Object.debugUpdateDirectives [as updateDirectives] (core.js:14648)
    at checkNoChangesView (core.js:13773)
    at callViewAction (core.js:14126)
    at execComponentViewsAction (core.js:14078)

image

The problem doesn't seem to appear on other components (for instance, LoginComponent). It also doesn't appear when I load the application on the profile component directly. It seems to only appear when I come to that component from a routing event.

What I want to know is what exactly this issue means, or where does it comes from. Could you answer that ?

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

"@angular/core": "^5.2.0",
"@angular/material": "^5.1.0",
"typescript": "~2.5.3"

I'm on Windows 10, using Google Chrome.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions