Whenever I try to build my JHipster Angular project, I encounter this error. It occurs right after running the command yarn start
import { Component, OnInit, OnDestroy } from '@angular/core';
import { ActivatedRoute, Router } from '@angular/router';
import { HttpResponse, HttpErrorResponse } from '@angular/common/http';
import { Subscription } from 'rxjs/Subscription';
import { JhiEventManager, JhiParseLinks, JhiAlertService } from 'ng-jhipster';
import { ITEMS_PER_PAGE, Principal } from '../../shared';
import { Observable } from 'rxjs/Observable';
....
private subscription: Subscription;
private eventSubscriber: Subscription;
...
ngOnInit() {
this.subscription = this.route.params.subscribe((params) => {
this.load(params['id']);
});
}
> TS90010: Type 'Subscription' is not assignable to type 'Subscription'.
> Two different types with this name exist, but they are unrelated.
Oddly enough, it worked perfectly fine before without any issues. The reason behind this sudden error eludes me.