Skip to content

--changeDetection=OnPush doesn't work on Ionic 5/ Angular 9 project #245

Closed
@Sampath-Lokuge

Description

@Sampath-Lokuge

Hi,

I need to generate Components with --changeDetection=OnPush. But it is not working.

Error:

$ ionic g component components/client/shipping-service-type --changeDetection=OnPush
> ng.cmd generate component components/client/shipping-service-type --change-detection=OnPush --project=app
Unknown option: '--change-detection'
[ERROR] Could not generate component. 

Ionic:

Ionic CLI : 6.9.2 (C:\Users\Sampath\AppData\Roaming\npm\node_modules@ionic\cli)
Ionic Framework : @ionic/angular 5.1.1
@angular-devkit/build-angular : 0.901.5
@angular-devkit/schematics : 9.1.5
@angular/cli : 9.1.5
@ionic/angular-toolkit : 2.1.1

Capacitor:

Capacitor CLI : 2.1.0
@capacitor/core : 2.1.0

Utility:

cordova-res (update available: 0.9.0) : 0.8.1
native-run (update available: 0.3.0) : 0.2.5

System:

NodeJS : v12.13.1 (C:\Program Files\nodejs\node.exe)
npm : 6.12.1
OS : Windows 10

Activity

imhoffd

imhoffd commented on Jun 8, 2020

@imhoffd
Contributor

Duplicate of #94

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

        Participants

        @imhoffd@Sampath-Lokuge

        Issue actions

          --changeDetection=OnPush doesn't work on Ionic 5/ Angular 9 project · Issue #245 · ionic-team/angular-toolkit