🐞 Bug report
Command (mark with an x)
Is this a regression?
I have not seen this bug during previous migrations
Description
During the update of Material from 11 to 12, the link to the theme has been automatically removed from the style.scss file (aka
this line has been removed : @import "~@angular/material/prebuilt-themes/indigo-pink.css")
But it has not been automatically added back to the styles array of the angular.json.
🔬 Minimal Reproduction
(sorry I don't know the command line for each step, specially the first one that needs to create a project in version 11)
- Create new project in version 11 with the cli and add Material support.
- Add a theme to the
style.scss (@import "~@angular/material/prebuilt-themes/indigo-pink.css")
- Launch the
ng update @angular/material
You will see the line has been removed from the styles.scss file ... but no add to styles arry of the angular.json file.
🔥 Exception or Error
🌍 Your Environment
$ ng version
_ _ ____ _ ___
/ \ _ __ __ _ _ _| | __ _ _ __ / ___| | |_ _|
/ △ \ | '_ \ / _` | | | | |/ _` | '__| | | | | | |
/ ___ \| | | | (_| | |_| | | (_| | | | |___| |___ | |
/_/ \_\_| |_|\__, |\__,_|_|\__,_|_| \____|_____|___|
|___/
Angular CLI: 12.0.0
Node: 14.15.1
Package Manager: npm 6.14.8
OS: win32 x64
Angular: 12.0.0
... animations, cdk, cli, common, compiler, compiler-cli, core
... forms, language-service, material, material-moment-adapter
... platform-browser, platform-browser-dynamic, router
Package Version
---------------------------------------------------------
@angular-devkit/architect 0.1200.0
@angular-devkit/build-angular 12.0.0
@angular-devkit/core 12.0.0
@angular-devkit/schematics 12.0.0
@schematics/angular 12.0.0
rxjs 7.0.1
typescript 4.2.4
Anything else relevant?
🐞 Bug report
Command (mark with an
x)Is this a regression?
I have not seen this bug during previous migrations
Description
During the update of Material from 11 to 12, the link to the theme has been automatically removed from the
style.scssfile (akathis line has been removed : @import "~@angular/material/prebuilt-themes/indigo-pink.css")
But it has not been automatically added back to the
stylesarray of theangular.json.🔬 Minimal Reproduction
(sorry I don't know the command line for each step, specially the first one that needs to create a project in version 11)
style.scss(@import "~@angular/material/prebuilt-themes/indigo-pink.css")ng update @angular/materialYou will see the line has been removed from the
styles.scssfile ... but no add to styles arry of theangular.jsonfile.🔥 Exception or Error
🌍 Your Environment
Anything else relevant?