title: ERROR in Cannot read property '0' of undefined after upgrade to Angular 10
body: <p>I upgraded my angular application from version 8 to version 10. Now after running ng serve I am getting below one-liner error
  <strong>ERROR in Cannot read property '0' of undefined</strong>
  This looks very abstract error.</p>
  <p>I tried clearing npm cache, deleted the package.lock.json file, deleted node_modules, and install the npm packages again but nothing seems to help me.</p>
  <p>Below is my package.json file</p>
  <pre><code>{
    &quot;name&quot;: &quot;app-name&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;@agm/core&quot;: &quot;^1.1.0&quot;,
      &quot;@agm/js-marker-clusterer&quot;: &quot;^1.1.0&quot;,
      &quot;@angular/animations&quot;: &quot;~10.0.9&quot;,
      &quot;@angular/cdk&quot;: &quot;~10.1.3&quot;,
      &quot;@angular/common&quot;: &quot;~10.0.9&quot;,
      &quot;@angular/compiler&quot;: &quot;~10.0.9&quot;,
      &quot;@angular/core&quot;: &quot;~10.0.9&quot;,
      &quot;@angular/forms&quot;: &quot;~10.0.9&quot;,
      &quot;@angular/material&quot;: &quot;^10.1.3&quot;,
      &quot;@angular/platform-browser&quot;: &quot;~10.0.9&quot;,
      &quot;@angular/platform-browser-dynamic&quot;: &quot;~10.0.9&quot;,
      &quot;@angular/router&quot;: &quot;~10.0.9&quot;,
      &quot;@types/googlemaps&quot;: &quot;^3.39.12&quot;,
      &quot;angular-material-badge&quot;: &quot;^1.2.91&quot;,
      &quot;angular-notifier&quot;: &quot;^6.0.1&quot;,
      &quot;azure-maps-control&quot;: &quot;^2.0.20&quot;,
      &quot;bootstrap&quot;: &quot;^4.4.1&quot;,
      &quot;crypto-js&quot;: &quot;^4.0.0&quot;,
      &quot;dateformat&quot;: &quot;^3.0.3&quot;,
      &quot;dropbox&quot;: &quot;^5.2.1&quot;,
      &quot;iv-viewer&quot;: &quot;^2.0.1&quot;,
      &quot;js-marker-clusterer&quot;: &quot;^1.0.0&quot;,
      &quot;mammoth&quot;: &quot;^1.4.9&quot;,
      &quot;ng-inline-svg&quot;: &quot;^10.0.0&quot;,
      &quot;ng2-image-viewer&quot;: &quot;^3.0.5&quot;,
      &quot;ng2-pdf-viewer&quot;: &quot;^6.0.2&quot;,
      &quot;ngx-doc-viewer&quot;: &quot;1.0.0&quot;,
      &quot;ngx-light-carousel&quot;: &quot;1.0.20&quot;,
      &quot;ngx-pagination&quot;: &quot;^5.0.0&quot;,
      &quot;ngx-perfect-scrollbar&quot;: &quot;^9.0.0&quot;,
      &quot;ngx-permissions&quot;: &quot;^7.0.3&quot;,
      &quot;rxjs&quot;: &quot;~6.6.2&quot;,
      &quot;rxjs-compat&quot;: &quot;^6.6.2&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.5&quot;,
      &quot;@angular/cli&quot;: &quot;~10.0.5&quot;,
      &quot;@angular/compiler-cli&quot;: &quot;~10.0.9&quot;,
      &quot;@angular/language-service&quot;: &quot;~10.0.9&quot;,
      &quot;@types/jasmine&quot;: &quot;~3.5.12&quot;,
      &quot;@types/jasminewd2&quot;: &quot;~2.0.3&quot;,
      &quot;@types/node&quot;: &quot;^12.11.1&quot;,
      &quot;@types/office-js&quot;: &quot;^1.0.123&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.10.2&quot;,
      &quot;tslint&quot;: &quot;~6.1.0&quot;,
      &quot;typescript&quot;: &quot;~3.9.7&quot;
    }
  }
  </code></pre>
  <p>I am using node 12.15.0 version and npm version 6.13.4.
  Please help.</p>