Skip to content

Error after updating to Angular 9 #374

@ahardin13

Description

@ahardin13

I receive the following error after updating my project to Angular 9.

TypeError: Cannot read property 'createComponent' of undefined
    at UIView._applyUpdatedConfig (uiView.js:251)
    at UIView._viewConfigUpdated (uiView.js:237)
    at configureUIView (view.js:150)
    at Array.forEach (<anonymous>)
    at ViewService.sync (view.js:158)
    at ViewService.registerUIView (view.js:185)
    at UIView.ngOnInit (uiView.js:113)
    at checkAndUpdateDirectiveInline (core.js:21896)
    at checkAndUpdateNodeInline (core.js:30359)
    at checkAndUpdateNode (core.js:30321)

I was able to reproduce this with the example project at https://github.com/ui-router/angular-hybrid/tree/master/example after running ng update @angular/core --next in the example project, then running npm run example from the angular-hybrid project root.

Clicking on the "app.ng1" link works, but clicking on the "app.ng1.ng2" link causes the error, and the ng2 component is not displayed.

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