-
Notifications
You must be signed in to change notification settings - Fork 12k
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
CLI not respecting default schematics #16857
Comments
@gabrieltaets Old way:
New way:
You can get more details from here : https://angular.io/cli/generate#component-command |
@filipesilva @mgechev Although, ng update from 8 to 9 should take care of it. It should replace deprecated/removed options to new corresponding options. Currently, It's not doing it. |
Yup, that did the trick. Thanks, I spent quite some time trying to figure this out. Maybe a warning on the CLI for deprecated/unknown options in angular.json could be helpful, I had no idea these were deprecated and removed. |
Thanks @sacgrover for the resolution. Also I'm confirming Also it's important to note that the boolean logic has flipped for "@schematics/angular:component": {
// true => DO generate spec files, false => DON'T generate them
"spec": false
}
"@schematics/angular:component": {
// true => DON'T generate spec files, false => DO generate them
"skipTests": true
} |
Bump, just upgraded to v9 and had to change"styleext" to "style" for component generation to work as expected |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
🐞 Bug report
Command (mark with an
x
)Is this a regression?
Yes, the previous version in which this bug was not present was: Angular 8A clear and concise description of the problem...
On Angular 9, even though I have my default schematics set to use .scss and not generate spec files, when using ng generate, the CLI ignores my preferences.This used to work fine on Angular 8.
🔬 Minimal Reproduction
Set a schematics for styleext on angular.json and run ng generate.
🌍 Your Environment
Anything else relevant?
The text was updated successfully, but these errors were encountered: