Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ionic generate: Unknown option: '--change-detection' #305

Open
sebaferreras opened this issue Sep 6, 2020 · 0 comments
Open

ionic generate: Unknown option: '--change-detection' #305

sebaferreras opened this issue Sep 6, 2020 · 0 comments

Comments

@sebaferreras
Copy link

Description:

One of the examples in the Ionic Generate docs is ionic generate component login-form --change-detection=OnPush but executing that exact command returns an error:

ionic generate component login-form --change-detection=OnPush
=> Unknown option: '--change-detection'

The same happens when trying to use some other options:

ionic generate component login-form --view-encapsulation=None
=> Unknown option: '--view-encapsulation'

Steps to Reproduce:

In any Ionic Angular project execute the following command: ionic generate component login-form --change-detection=OnPush

Output:

ionic generate component login-form --change-detection=OnPush
=> Unknown option: '--change-detection'

My ionic info:

Ionic:

   Ionic CLI                     : 6.11.8
   Ionic Framework               : @ionic/angular 5.3.2
   @angular-devkit/build-angular : 0.1000.8
   @angular-devkit/schematics    : 10.0.8
   @angular/cli                  : 10.0.8
   @ionic/angular-toolkit        : 2.3.3

Cordova:

   Cordova CLI       : 9.0.0 (cordova-lib@9.0.1)
   Cordova Platforms : android 9.0.0, ios 5.1.1
   Cordova Plugins   : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 5.0.0, (and 23 other plugins)

Utility:

   cordova-res                          : 0.15.1
   native-run (update available: 1.0.0) : 0.2.6

System:

   Android SDK Tools : 26.1.1
   ios-deploy        : 1.9.4
   ios-sim           : 8.0.2
   NodeJS            : v10.16.2
   npm               : 6.9.0
   OS                : macOS Catalina
   Xcode             : Xcode 11.6 Build version 11E708
@imhoffd imhoffd changed the title Ionic generate unknown option error ionic generate: Unknown option: '--change-detection' Sep 8, 2020
@imhoffd imhoffd transferred this issue from ionic-team/ionic-cli Sep 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant