Skip to content

v9.0.6 -> Uncaught TypeError: Cannot read property 'type' of undefined #36020

@meriturva

Description

@meriturva

🐞 bug report

Updated to 9.0.6 and we got the error: Uncaught TypeError: Cannot read property 'type' of undefined

Is this a regression?

with 9.0.5 no problem.

🔥 Exception or Error


Uncaught TypeError: Cannot read property 'type' of undefined
    at Module.ɵɵNgOnChangesFeature (:4200/vendor.js:44937)
    at Module../node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js (:4200/vendor.js:14192)
    at __webpack_require__ (:4200/runtime.js:85)
    at Module../node_modules/@angular/common/__ivy_ngcc__/fesm2015/http.js (:4200/vendor.js:17244)
    at __webpack_require__ (:4200/runtime.js:85)
    at Module../node_modules/@aulos/core/fesm2015/aulos-core.js (:4200/vendor.js:89726)
    at __webpack_require__ (:4200/runtime.js:85)
    at Module. (:4200/main.js:2232)
    at Module../src/main.ts (:4200/main.js:2273)
    at __webpack_require__ (:4200/runtime.js:85)

🌍 Your Environment

Angular Version:



     _                      _                 ____ _     ___
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/
    

Angular CLI: 9.0.5
Node: 12.15.0
OS: win32 x64

Angular: 9.0.6
... animations, common, compiler, compiler-cli, core, forms
... language-service, localize, platform-browser
... platform-browser-dynamic, router
Ivy Workspace: Yes

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.900.5
@angular-devkit/build-angular     0.900.5
@angular-devkit/build-optimizer   0.900.5
@angular-devkit/build-webpack     0.900.5
@angular-devkit/core              9.0.5
@angular-devkit/schematics        9.0.5
@angular/cdk                      9.1.2
@angular/cli                      9.0.5
@ngtools/webpack                  9.0.5
@schematics/angular               9.0.5
@schematics/update                0.900.5
rxjs                              6.5.4
typescript                        3.7.5
webpack                           4.41.2

Seems to be related to #35846
Actually we found a call to the function:

function ɵɵNgOnChangesFeature(definition) {
    if (definition.type.prototype.ngOnChanges) {
        definition.setInput = ngOnChangesSetInput;
        ((/** @type {?} */ (definition))).onChanges = wrapOnChanges();
    }
}

without any param here (see last property features ):

NgComponentOutlet.ɵdir = ɵngcc0.ɵɵdefineDirective({ type: NgComponentOutlet, selectors: [["", "ngComponentOutlet", ""]], inputs: { ngComponentOutlet: "ngComponentOutlet", ngComponentOutletInjector: "ngComponentOutletInjector", ngComponentOutletContent: "ngComponentOutletContent", ngComponentOutletNgModuleFactory: "ngComponentOutletNgModuleFactory" }, features: [ɵngcc0.ɵɵNgOnChangesFeature()] });

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions