title: Angular update using ng update @angular/cli @angular/core --allow-dirty --force
body: <p>I update my Angular project v8 to last update and I face problem. My <code>package.json</code> was as follows:</p>
  <pre><code>{
      &quot;name&quot;: &quot;website-admin-angular&quot;,
      &quot;version&quot;: &quot;0.0.0&quot;,
      &quot;scripts&quot;: {
          &quot;ng&quot;: &quot;ng&quot;,
          &quot;start&quot;: &quot;ng serve&quot;,
          &quot;build&quot;: &quot;ng build&quot;,
          &quot;test&quot;: &quot;ng test&quot;,
          &quot;lint&quot;: &quot;ng lint&quot;,
          &quot;e2e&quot;: &quot;ng e2e&quot;
      },
      &quot;private&quot;: true,
      &quot;dependencies&quot;: {
          &quot;@angular-material-components/datetime-picker&quot;: &quot;^4.0.0&quot;,
          &quot;@angular/animations&quot;: &quot;angular/animations-builds&quot;,
          &quot;@angular/cdk&quot;: &quot;^8.2.3&quot;,
          &quot;@angular/common&quot;: &quot;~8.0.3&quot;,
          &quot;@angular/compiler&quot;: &quot;~8.0.3&quot;,
          &quot;@angular/core&quot;: &quot;~8.0.3&quot;,
          &quot;@angular/forms&quot;: &quot;~8.0.3&quot;,
          &quot;@angular/http&quot;: &quot;^7.2.15&quot;,
          &quot;@angular/material&quot;: &quot;^8.2.3&quot;,
          &quot;@angular/platform-browser&quot;: &quot;~8.0.3&quot;,
          &quot;@angular/platform-browser-dynamic&quot;: &quot;~8.0.3&quot;,
          &quot;@angular/router&quot;: &quot;~8.0.3&quot;,
          &quot;@fortawesome/angular-fontawesome&quot;: &quot;^0.4.0&quot;,
          &quot;@fortawesome/fontawesome-svg-core&quot;: &quot;^1.2.21&quot;,
          &quot;@fortawesome/free-solid-svg-icons&quot;: &quot;^5.10.1&quot;,
          &quot;@ngx-translate/core&quot;: &quot;^11.0.1&quot;,
          &quot;@ngx-translate/http-loader&quot;: &quot;^4.0.0&quot;,
          &quot;angular-bootstrap-md&quot;: &quot;^8.1.0&quot;,
          &quot;angular-font-awesome&quot;: &quot;^3.1.2&quot;,
          &quot;angular2-chartjs&quot;: &quot;^0.5.1&quot;,
          &quot;angular2-jwt&quot;: &quot;^0.2.3&quot;,
          &quot;chart.js&quot;: &quot;^2.8.0&quot;,
          &quot;chartjs-plugin-annotation&quot;: &quot;^0.5.7&quot;,
          &quot;font-awesome&quot;: &quot;^4.7.0&quot;,
          &quot;hammerjs&quot;: &quot;^2.0.8&quot;,
          &quot;jquery&quot;: &quot;^3.4.1&quot;,
          &quot;material-design-icons&quot;: &quot;^3.0.1&quot;,
          &quot;ng-http-loader&quot;: &quot;^6.0.1&quot;,
          &quot;ng2-charts&quot;: &quot;2.3.0&quot;,
          &quot;ng2-validation&quot;: &quot;^4.2.0&quot;,
          &quot;ngx-cookie-service&quot;: &quot;^2.2.0&quot;,
          &quot;ngx-filter-pipe&quot;: &quot;^2.1.2&quot;,
          &quot;ngx-loading&quot;: &quot;^3.0.1&quot;,
          &quot;ngx-toastr&quot;: &quot;^10.0.4&quot;,
          &quot;ngx-ui-loader&quot;: &quot;^8.0.0&quot;,
          &quot;rxjs&quot;: &quot;^6.5.3&quot;,
          &quot;tslib&quot;: &quot;^1.9.0&quot;,
          &quot;zone.js&quot;: &quot;~0.9.1&quot;
      },
      &quot;devDependencies&quot;: {
          &quot;@angular-devkit/build-angular&quot;: &quot;~0.800.6&quot;,
          &quot;@angular/cli&quot;: &quot;^8.3.21&quot;,
          &quot;@angular/compiler-cli&quot;: &quot;~8.0.3&quot;,
          &quot;@angular/language-service&quot;: &quot;~8.0.3&quot;,
          &quot;@types/jasmine&quot;: &quot;~3.3.8&quot;,
          &quot;@types/jasminewd2&quot;: &quot;~2.0.3&quot;,
          &quot;@types/node&quot;: &quot;~8.9.4&quot;,
          &quot;codelyzer&quot;: &quot;^5.0.0&quot;,
          &quot;jasmine-core&quot;: &quot;~3.4.0&quot;,
          &quot;jasmine-spec-reporter&quot;: &quot;~4.2.1&quot;,
          &quot;karma&quot;: &quot;~4.1.0&quot;,
          &quot;karma-chrome-launcher&quot;: &quot;~2.2.0&quot;,
          &quot;karma-coverage-istanbul-reporter&quot;: &quot;~2.0.1&quot;,
          &quot;karma-jasmine&quot;: &quot;~2.0.1&quot;,
          &quot;karma-jasmine-html-reporter&quot;: &quot;^1.4.0&quot;,
          &quot;protractor&quot;: &quot;~5.4.0&quot;,
          &quot;ts-node&quot;: &quot;~7.0.0&quot;,
          &quot;tslint&quot;: &quot;~5.15.0&quot;,
          &quot;typescript&quot;: &quot;~3.4.3&quot;
      }
  }
  </code></pre>
  <p>after run</p>
  <pre><code>ng update @angular/cli @angular/core --allow-dirty --force
  </code></pre>
  <p>my <code>package.json</code> became as follows:</p>
  <pre><code>{
    &quot;name&quot;: &quot;website-admin-angular&quot;,
    &quot;version&quot;: &quot;0.0.0&quot;,
    &quot;scripts&quot;: {
      &quot;ng&quot;: &quot;ng&quot;,
      &quot;start&quot;: &quot;ng serve&quot;,
      &quot;build&quot;: &quot;ng build&quot;,
      &quot;test&quot;: &quot;ng test&quot;,
      &quot;lint&quot;: &quot;ng lint&quot;,
      &quot;e2e&quot;: &quot;ng e2e&quot;
    },
    &quot;private&quot;: true,
    &quot;dependencies&quot;: {
      &quot;@angular-material-components/datetime-picker&quot;: &quot;^4.0.0&quot;,
      &quot;@angular/animations&quot;: &quot;^10.0.2&quot;,
      &quot;@angular/cdk&quot;: &quot;^10.0.1&quot;,
      &quot;@angular/common&quot;: &quot;~10.0.2&quot;,
      &quot;@angular/compiler&quot;: &quot;~10.0.2&quot;,
      &quot;@angular/core&quot;: &quot;~10.0.2&quot;,
      &quot;@angular/forms&quot;: &quot;~10.0.2&quot;,
      &quot;@angular/http&quot;: &quot;^7.2.16&quot;,
      &quot;@angular/material&quot;: &quot;^10.0.1&quot;,
      &quot;@angular/platform-browser&quot;: &quot;~10.0.2&quot;,
      &quot;@angular/platform-browser-dynamic&quot;: &quot;~10.0.2&quot;,
      &quot;@angular/router&quot;: &quot;~10.0.2&quot;,
      &quot;@fortawesome/angular-fontawesome&quot;: &quot;^0.4.0&quot;,
      &quot;@fortawesome/fontawesome-svg-core&quot;: &quot;^1.2.21&quot;,
      &quot;@fortawesome/free-solid-svg-icons&quot;: &quot;^5.10.1&quot;,
      &quot;@ngx-translate/core&quot;: &quot;^11.0.1&quot;,
      &quot;@ngx-translate/http-loader&quot;: &quot;^4.0.0&quot;,
      &quot;angular-bootstrap-md&quot;: &quot;^8.1.0&quot;,
      &quot;angular-font-awesome&quot;: &quot;^3.1.2&quot;,
      &quot;angular2-chartjs&quot;: &quot;^0.5.1&quot;,
      &quot;angular2-jwt&quot;: &quot;^0.2.3&quot;,
      &quot;chart.js&quot;: &quot;^2.8.0&quot;,
      &quot;chartjs-plugin-annotation&quot;: &quot;^0.5.7&quot;,
      &quot;font-awesome&quot;: &quot;^4.7.0&quot;,
      &quot;hammerjs&quot;: &quot;^2.0.8&quot;,
      &quot;jquery&quot;: &quot;^3.4.1&quot;,
      &quot;material-design-icons&quot;: &quot;^3.0.1&quot;,
      &quot;ng-http-loader&quot;: &quot;^6.0.1&quot;,
      &quot;ng2-charts&quot;: &quot;2.3.0&quot;,
      &quot;ng2-validation&quot;: &quot;^4.2.0&quot;,
      &quot;ngx-cookie-service&quot;: &quot;^2.2.0&quot;,
      &quot;ngx-filter-pipe&quot;: &quot;^2.1.2&quot;,
      &quot;ngx-loading&quot;: &quot;^3.0.1&quot;,
      &quot;ngx-toastr&quot;: &quot;^12.1.0&quot;,
      &quot;ngx-ui-loader&quot;: &quot;^8.0.0&quot;,
      &quot;rxjs&quot;: &quot;^6.5.3&quot;,
      &quot;tslib&quot;: &quot;^2.0.0&quot;,
      &quot;zone.js&quot;: &quot;~0.10.3&quot;
    },
    &quot;devDependencies&quot;: {
      &quot;@angular-devkit/build-angular&quot;: &quot;~0.1000.1&quot;,
      &quot;@angular/cli&quot;: &quot;^10.0.1&quot;,
      &quot;@angular/compiler-cli&quot;: &quot;~10.0.2&quot;,
      &quot;@angular/language-service&quot;: &quot;~10.0.2&quot;,
      &quot;@types/jasmine&quot;: &quot;~3.3.8&quot;,
      &quot;@types/jasminewd2&quot;: &quot;~2.0.3&quot;,
      &quot;@types/node&quot;: &quot;^12.11.1&quot;,
      &quot;codelyzer&quot;: &quot;^5.1.2&quot;,
      &quot;jasmine-core&quot;: &quot;~3.5.0&quot;,
      &quot;jasmine-spec-reporter&quot;: &quot;~5.0.0&quot;,
      &quot;karma&quot;: &quot;~5.0.0&quot;,
      &quot;karma-chrome-launcher&quot;: &quot;~3.1.0&quot;,
      &quot;karma-coverage-istanbul-reporter&quot;: &quot;~3.0.2&quot;,
      &quot;karma-jasmine&quot;: &quot;~3.3.0&quot;,
      &quot;karma-jasmine-html-reporter&quot;: &quot;^1.5.0&quot;,
      &quot;protractor&quot;: &quot;~7.0.0&quot;,
      &quot;ts-node&quot;: &quot;~7.0.0&quot;,
      &quot;tslint&quot;: &quot;~6.1.0&quot;,
      &quot;typescript&quot;: &quot;~3.9.6&quot;
    }
  }
  </code></pre>
  <p>and when run</p>
  <pre><code>ng s -o
  </code></pre>
  <p>I get this error</p>
  <p><a href="https://i.stack.imgur.com/ULVai.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ULVai.png" alt="" /></a></p>
  <p>and my log is</p>
  <pre><code>[error] Error: NGCC failed.
  at NgccProcessor.process (E:\AdminPanelGit\node_modules\@ngtools\webpack\src\ngcc_processor.js:69:19)
  at E:\AdminPanelGit\node_modules\@ngtools\webpack\src\angular_compiler_plugin.js:576:31
  at SyncHook.eval [as call] (eval at create (E:\AdminPanelGit\node_modules\tapable\lib\HookCodeFactory.js:19:10), &lt;anonymous&gt;:7:1)
  at SyncHook.lazyCompileHook (E:\AdminPanelGit\node_modules\tapable\lib\Hook.js:154:20)
  at Object.webpack [as webpackFactory] (E:\AdminPanelGit\node_modules\webpack\lib\webpack.js:55:30)
  at createWebpack (E:\AdminPanelGit\node_modules\@angular-devkit\build-webpack\src\webpack-dev-server\index.js:21:36)
  at Object.runWebpackDevServer (E:\AdminPanelGit\node_modules\@angular-devkit\build-webpack\src\webpack-dev-server\index.js:47:12)
  at SwitchMapSubscriber.project (E:\AdminPanelGit\node_modules\@angular-devkit\build-angular\src\dev-server\index.js:164:32)
  at SwitchMapSubscriber._next (E:\AdminPanelGit\node_modules\@angular-devkit\build-angular\node_modules\rxjs\internal\operators\switchMap.js:49:27)
  at SwitchMapSubscriber.Subscriber.next (E:\AdminPanelGit\node_modules\@angular-devkit\build-angular\node_modules\rxjs\internal\Subscriber.js:66:18)
  at E:\AdminPanelGit\node_modules\@angular-devkit\build-angular\node_modules\rxjs\internal\util\subscribeToPromise.js:7:24
  at processTicksAndRejections (internal/process/task_queues.js:97:5)
  </code></pre>