title: Upgrading NG-Zorro from V8 to V9 gives: "Class extends value undefined is not a constructor or null"
body: <p>After running <code>ng update ng-zorro-antd</code> we get:</p>
  
  <pre><code>[error] TypeError: Class extends value undefined is not a constructor or null
      at Object.&lt;anonymous&gt; (C:\Users\&lt;user name&gt;\Desktop\Work\&lt;project name&gt;\node_modules\ng-zorro-antd\schematics\ng-update\upgrade-rules\checks\calendar-input-rule.js:4:49)
  </code></pre>
  
  <p>This also happens in a brand new Angular 8 project. The upgrade to Angular 9 works fine but only the NG-Zorro update fails.</p>
  
  <p>These are the contents of the <code>calendar-input-rule.js</code> file from the error:</p>
  
  <pre><code>"use strict";
  Object.defineProperty(exports, "__esModule", { value: true });
  const schematics_1 = require("@angular/cdk/schematics");
  class CalendarTemplateRule extends schematics_1.MigrationRule {
      constructor() {
          super(...arguments);
          this.ruleEnabled = this.targetVersion === schematics_1.TargetVersion.V9;
      }
      visitTemplate(template) {
          schematics_1.findInputsOnElementWithTag(template.content, 'nzCard', ['nz-calendar'])
              .forEach(offset =&gt; {
              this.failures.push({
                  filePath: template.filePath,
                  position: template.getCharacterAndLineOfPosition(offset),
                  message: `Found deprecated input "nzCard" component. Use "nzFullscreen" to instead please.`
              });
          });
      }
  }
  exports.CalendarTemplateRule = CalendarTemplateRule;
  //# sourceMappingURL=calendar-input-rule.js.map
  </code></pre>
  
  <p>I saw people saying that it might be due to circular dependencies but the app is working fine, so the error might be from the NG-Zorro's imports? Are there any workarounds this?</p>