title: An unhandled exception occurred: NGCC failed. when I compiled using ng serve
body: <p>I compiled my project and I am getting error as &quot;An unhandled exception occurred: NGCC failed.&quot;
  Firstly I clone my project from GitLab. Then follow the steps
  1)npm install
  2)ng serve --open</p>
  <p>Dependencies looks like :</p>
  <pre><code>  &quot;devDependencies&quot;: {
      &quot;@angular-devkit/build-angular&quot;: &quot;~0.1000.4&quot;,
      &quot;@angular/cli&quot;: &quot;~10.0.4&quot;,
      &quot;@angular/compiler-cli&quot;: &quot;~10.0.5&quot;,
      &quot;@angular/language-service&quot;: &quot;^5.2.0&quot;,
      &quot;@types/node&quot;: &quot;^12.11.1&quot;,
      &quot;@types/jasmine&quot;: &quot;~3.5.0&quot;,
      &quot;@types/jasminewd2&quot;: &quot;~2.0.3&quot;,
      &quot;codelyzer&quot;: &quot;^6.0.0&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;~8.3.0&quot;,
      &quot;tslint&quot;: &quot;~6.1.0&quot;,
      &quot;typescript&quot;: &quot;~3.9.5&quot;
    }
  </code></pre>
  <p>Does anyone know what could be wrong?
  Help me to find out the way.</p>