title: Angular 5 ERROR in _this.host.getOutputName is not a function
body: <p>I really don't know why but when I upgraded from Angular 4 =&gt; 5, <code>ng serve</code> doesn't seem to be working and is throwing an error:</p>
  <blockquote>
  <p>ERROR in _this.host.getOutputName is not a function</p>
  <p>webpack: Failed to compile.</p>
  </blockquote>
  <p>This is what my package looks like:</p>
  <pre><code>{
    &quot;name&quot;: &quot;website&quot;,
    &quot;version&quot;: &quot;0.0.0&quot;,
    &quot;license&quot;: &quot;MIT&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/animations&quot;: &quot;^5.0.0&quot;,
      &quot;@angular/common&quot;: &quot;^5.0.0&quot;,
      &quot;@angular/compiler&quot;: &quot;^5.0.0&quot;,
      &quot;@angular/core&quot;: &quot;^5.0.0&quot;,
      &quot;@angular/forms&quot;: &quot;^5.0.0&quot;,
      &quot;@angular/http&quot;: &quot;^5.0.0&quot;,
      &quot;@angular/platform-browser&quot;: &quot;^5.0.0&quot;,
      &quot;@angular/platform-browser-dynamic&quot;: &quot;^5.0.0&quot;,
      &quot;@angular/router&quot;: &quot;^5.0.0&quot;,
      &quot;@ng-bootstrap/ng-bootstrap&quot;: &quot;^1.0.0&quot;,
      &quot;core-js&quot;: &quot;^2.4.1&quot;,
      &quot;jquery&quot;: &quot;^3.2.1&quot;,
      &quot;ngx-textarea-autosize&quot;: &quot;^1.1.1&quot;,
      &quot;rxjs&quot;: &quot;^5.1.0&quot;,
      &quot;zone.js&quot;: &quot;^0.8.4&quot;
    },
    &quot;devDependencies&quot;: {
      &quot;@angular/cli&quot;: &quot;1.2.0&quot;,
      &quot;@angular/compiler-cli&quot;: &quot;^4.0.0&quot;,
      &quot;@angular/language-service&quot;: &quot;^4.0.0&quot;,
      &quot;@types/jasmine&quot;: &quot;~2.5.53&quot;,
      &quot;@types/jasminewd2&quot;: &quot;~2.0.2&quot;,
      &quot;@types/jquery&quot;: &quot;^3.2.16&quot;,
      &quot;@types/node&quot;: &quot;~6.0.60&quot;,
      &quot;codelyzer&quot;: &quot;~3.0.1&quot;,
      &quot;jasmine-core&quot;: &quot;~2.6.2&quot;,
      &quot;jasmine-spec-reporter&quot;: &quot;~4.1.0&quot;,
      &quot;karma&quot;: &quot;~1.7.0&quot;,
      &quot;karma-chrome-launcher&quot;: &quot;~2.1.1&quot;,
      &quot;karma-cli&quot;: &quot;~1.0.1&quot;,
      &quot;karma-coverage-istanbul-reporter&quot;: &quot;^1.2.1&quot;,
      &quot;karma-jasmine&quot;: &quot;~1.1.0&quot;,
      &quot;karma-jasmine-html-reporter&quot;: &quot;^0.2.2&quot;,
      &quot;protractor&quot;: &quot;~5.1.2&quot;,
      &quot;ts-node&quot;: &quot;~3.0.4&quot;,
      &quot;tslint&quot;: &quot;~5.3.2&quot;,
      &quot;typescript&quot;: &quot;~2.3.3&quot;
    }
  }
  </code></pre>