No config found or get/set have been deprecated in angular 6

后端 未结 2 1482
花落未央
花落未央 2021-01-20 00:14
ng config --global defaults.styleExt=scss

Error: config not found

ng set --global defaults.styleExt=sc         


        
2条回答
  •  旧时难觅i
    2021-01-20 00:43

    ng set --global defaults.styleExt=scss is deprecated since ng6.

    You should use:

    ng config schematics.@schematics/angular:component '{ styleext: "scss"}'
    

    If you want to target a specific project (replace {project} with your project's name):

    ng config projects.{project}.schematics.@schematics/angular:component '{ styleext: "scss"}'
    

提交回复
热议问题