cannot find module css-loader while doing ng build -prod with angular-cli@1.0.0-beta.21

前端 未结 6 1323
逝去的感伤
逝去的感伤 2021-02-02 01:12

I have following package.json configuration

\"dependencies\": {
\"@angular/common\": \"2.2.1\",
\"@angular/compiler\": \"2.2.1\",
\"@angular/core\": \"2.2.1\",
\         


        
6条回答
  •  傲寒
    傲寒 (楼主)
    2021-02-02 01:41

    mkishorem is right.

    I also got same error and fix with adding override code at package.json like below

    "devDependencies": {
     "extract-text-webpack-plugin": "2.0.0-beta.5" 
     }
    

    no need to downgrading to angular-cli all.

提交回复
热议问题