title: Can't get http response as a string in Angular 5
body: <p>Given the source Angular Service code</p>
  
  <pre class="lang-js prettyprint-override"><code>@Injectable()
  export class HomeContentService {
  
    constructor(private http: HttpClient) { }
  
    getContent(): Observable&lt;string&gt; {
  
      let fileURI = '/assets/content/home.md';
      let opt = { responseType: 'text' };
      return this.http.get&lt;string&gt;(
        fileURI,
        opt
      );
  
    }
  </code></pre>
  
  <p>Calling <code>getContent()</code> should return an <code>Observable&lt;string&gt;</code>. However, when I run <code>ng serve</code>, I get <code>Type 'string' is not assignable to type 'json'</code>.</p>
  
  <p>After a few tries webpack seems to compile fine without me doing any changes, but the problem happens again anytime I close the process and try to <code>ng serve</code> again.</p>
  
  <p>I guess there's something wrong with my setting <code>responseType: 'text'</code>, but I don't know what it is. Googling wasn't helpful either.</p>
  
  <p>Any ideas?</p>