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

前端 未结 6 1320
逝去的感伤
逝去的感伤 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:38

    had the same issue starting today.

    The solution I found was to change the angular-cli dependency in package.json file to "1.0.0-beta.19-3" and reinstall the npm packages.

    {
      "devDependencies": {
           ...
           "angular-cli": "1.0.0-beta.19-3",
           ...
           }
    }
    

    Hope this helps!

提交回复
热议问题