I just upgraded to Angular RC 5 and now all component that uses \'ROUTER_DIRECTIVES\' fails with \'Can\'t resolve all parameters for Router: (?, ?, ?, ?, ?, ?, ?)\' when I t
Try adding RouterModule:
import { ROUTER_DIRECTIVES, Router, RouterModule } from '@angular/router'; beforeEach(() => { TestBed.configureTestingModule({ providers: [ ... {provide: Router, useClass: RouterModule}, }); });