Consider the following:
import { Http } from '@angular/http';
// import 'rxjs/add/operator/last';
class TestHttp {
constructor(private readonly http: Http) {
const response = http.get('').last();
}
}
Problems view:
Property ‘last’ does not exist on type ‘Observable<Response>’
This error is correct, because operator/last import is missing.
However, in the source editor, there is no mark for this error. Other errors and warnings seem to be marked correctly in the same source.
-
This topic was modified 7 years, 6 months ago by Fedor Losev.