css - Angular Material Theme import in Angular 2 not working in Webstorm -


i trying import built in themes of angular material 2 web-storm unable resolve file path , find directory although theme file residing in exact directory. have tried different methods import resulted in same issue. here how importing in styles.scss file

@import '~@angular/material/prebuilt-themes/indigo-pink.css'; 

the ide starts highlighting path material stating problem.

this whole path of theme file.

/media/rehan/new volume/tic-tac-toe/node_modules/@angular/material/prebuilt-themes/indigo-pink.css 

as working angular cli based project in angular 2 added theme file .angular-cli.json file under styles object using following path may vary depending on angular material has been installed:

 "styles": [ "../node_modules/@angular/material/prebuilt-themes/indigo-pi‌​nk.css"] 

Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -