chirag sorathiya
chirag sorathiya

Reputation: 1243

angular 6 scss error

I'm use angular 6.0.1 and when i create a style class, it's give me error like in screen short and you can also see my package.json

"dependencies": {
"@angular/animations": "6.1.0",
"@angular/cdk": "6.4.1",
"@angular/common": "6.1.0",
"@angular/compiler": "6.1.0",
"@angular/core": "6.1.0",
"@angular/forms": "6.1.0",
"@angular/http": "6.1.0",
"@angular/material": "6.4.1",
"@angular/platform-browser": "6.1.0",
"@angular/platform-browser-dynamic": "6.1.0",
"@angular/router": "6.1.0",
"angular2-notifications": "^1.0.2",
"bootstrap": "3.3.7",
"core-js": "2.5.4",
"rxjs": "6.0.0",
"zone.js": "0.8.26"

and i getting error like enter image description here

and my code look like

.mat-sidenav-container
   position: fixed
   height: 100%

Upvotes: 0

Views: 81

Answers (1)

Pranay Rana
Pranay Rana

Reputation: 176886

it should be like ,

.mat-sidenav-container
{
   position: fixed;
   height: 100%;
}

you need {} around your css class you are defining.

Upvotes: 2

Related Questions