Closed
Description
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 commentedon Jun 8, 2020
Duplicate of #94