Closed
Description
Bug, feature request, or proposal:
Bug.
What is the expected behavior?
No warnings during build.
What is the current behavior?
I see the following self-explaining deprecation warnings:
ng build --prod
10% building modules 4/5 modules 1 active ...\<project_root>l\src\theme.scssDEPRECATION WARNING: Passing null, a non-string value, to unquote()
will be an error in future versions of Sass.
on line 1483 of <project_root>/node_modules/@angular/material/_theming.scss
DEPRECATION WARNING: Passing null, a non-string value, to unquote()
will be an error in future versions of Sass.
on line 1483 of c:/Work/Dita 10% building modules 6/6 modules 0 activeDEPRECATION WARNING: Passing null, a non-string value, to unquote()
will be an error in future versions of Sass.
on line 1483 of <project_root>/node_modules/@angular/material/_theming.scss
DEPRECATION WARNING: Passing null, a non-string value, to unquote()
will be an error in future versions of Sass.
on line 1483 of <project_root>/node_modules/@angular/material/_theming.scss
DEPRECATION WARNING: Passing null, a non-string value, to unquote()
will be an error in future versions of Sass.
on line 1483 of <project_root>/node_modules/@angular/material/_theming.scss
DEPRECATION WARNING: Passing null, a non-string value, to unquote()
will be an error in future versions of Sass.
on line 1483 of <project_root>/node_modules/@angular/material/_theming.scss
DEPRECATION WARNING: Passing null, a non-string value, to unquote()
DEPRECATION WARNING: Passing null, a non-string value, to unquote()
will be an error in future versions of Sass.
on line 1483 of <project_root>/node_modules/@angular/material/_theming.scss
will be an error in future versions of Sass.
on line 1483 of <project_root>/node_modules/@angular/material/_theming.scss
DEPRECATION WARNING: Passing null, a non-string value, to unquote()
will be an error in future versions of Sass.
on line 1483 of <project_root>/node_modules/@angular/material/_theming.scss
DEPRECATION WARNING: Passing null, a non-string value, to unquote()
will be an error in future versions of Sass.
on line 1483 of <project_root>/node_modules/@angular 69% building modules 740/741 modules 1 active ...itatWeb\<project_root>l\src\theme.scssDEPRECATION WARNING: Passing null, a non-string value, to unquote()
will be an error in future versions of Sass.
on line 1483 of <project_root>/node_modules/@angular/material/_theming.scss
DEPRECATION WARNING: Passing null, a non-string value, to unquote()
will be an error in future versions of Sass.
on line 1483 of c:/Work/Date: 2017-12-13T20:43:31.018Z
Hash: 0fe6fd8d1d7e608d6e79
Time: 112769ms
chunk {0} polyfills.0c6625b3fc183e5d4767.bundle.js (polyfills) 96.4 kB [initial] [rendered]
chunk {1} main.9b8205e180b9751fc93c.bundle.js (main) 1.47 MB [initial] [rendered]
chunk {2} styles.525ebb3f34a68462be9d.bundle.css (styles) 46 kB [initial] [rendered]
chunk {3} inline.b240d1c2aa548af8fc2a.bundle.js (inline) 1.45 kB [entry] [rendered]
What are the steps to reproduce?
- Create a new app with CLI.
- Add Material packages to
package.json
:
"dependencies": {
"@angular/animations": "^5.1.1",
"@angular/cdk": "^5.0.1",
"@angular/common": "^5.1.1",
"@angular/compiler": "^5.1.1",
"@angular/core": "^5.1.1",
"@angular/flex-layout": "2.0.0-beta.10-4905443",
"@angular/forms": "^5.1.1",
"@angular/http": "^5.1.1",
"@angular/material": "^5.0.1",
"@angular/platform-browser": "^5.1.1",
"@angular/platform-browser-dynamic": "^5.1.1",
"@angular/router": "^5.1.1",
"core-js": "^2.5.3",
"rxjs": "^5.5.5",
"zone.js": "^0.8.14"
},
- Create a custom
theme.scss
insrc
folder and register it in.angular-cli.json
:
@import '~@angular/material/theming';
$typography-config-default: mat-typography-config();
$typography-config-custom: (
button: mat-typography-level(18px, 18px, bold) /* This line causes warnings */
);
$typography-config: map-merge($typography-config-default, $typography-config-custom);
@include mat-core($typography-config);
- Run
ng serve
and see the warnings.
What is the use-case or motivation for changing an existing behavior?
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular 5.1.1, Angular Material 5.0.1, TypeScript 2.4.2.