Skip to content

[beta.2] ngDoCheck is not a function when using minified bundles #6380

Closed
@ericmartinezr

Description

@ericmartinezr

When using minified bundles with SystemJS, and a simple snippet like this

        <template ngFor #item [ngForOf]="items" #i="index">
          <li>{{i}}</li>
          <li *ngIf="i % 2 == 0">number is even</li>
        </template>

Will throw

TypeError: this.directive_0_0.ngDoCheck is not a function

This is only reproducible with minified bundles, non-minified work correctly.

As an example check this plnkr (took it from #6304 (comment)). To reproduce switch between minified and unminified bundles.

This is also reproducible with Webpack using this line in the config

    plugins : [
        new webpack.optimize.UglifyJsPlugin()
    ],

Am I missing something?

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