Occasionally, typescript may generate a definition file with code like the following, leading to compile errors:
// issue.ts
import { Observable } from 'rxjs';
class Issue {
get data() {
return new Observable();
}
}
// issue.d.ts
class Issue {
data: import("rxjs").Observable<any>;
}
What causes this issue and what steps can be taken to identify and fix these kinds of errors?