I have angular2-modal running fine in my angular 2 app. However, I am having issues testing via Karma. I have set up my test bed with
beforeEach(() => {
TestBed.configureTestingModule({
imports: [
HttpModule
],
providers: [
ApiService,
MockBackend,
UiComponentService,
BaseRequestOptions,
AlertCenterService,
{
provide: Http,
useFactory: (backend: any, options: any) => new Http(backend, options),
deps: [MockBackend, BaseRequestOptions]
},
Overlay,
OverlayRenderer,
Modal
]
});
});
However, I get the strange DI Error:
Error: No provider for Modal$$1!
Error: DI Error
The UiComponentService is where I use the modal. Tests were working prior to adding the modal. I can't find a reference to Modal with $$1 appended anywhere, and I don't understand where it is coming from.