No provider for ComponentLoaderFactory

I updated the angular2 project before it worked just fine. However, now I get the following error:

Error: Uncaught (in promise): Error: Error in ./RibbonComponent class 
RibbonComponent - inline template:4:5 caused by: No provider for 
ComponentLoaderFactory!
Error: Error in ./RibbonComponent class RibbonComponent - inline 
template:4:5 caused by: No provider for ComponentLoaderFactory!

ComponentLoaderFactory

export declare class ComponentLoaderFactory {
    private _componentFactoryResolver;
    private _ngZone;
    private _injector;
    private _posService;
    constructor(componentFactoryResolver: ComponentFactoryResolver, ngZone: NgZone, injector: Injector, posService: PositioningService);
    /**
     *
     * @param _elementRef
     * @param _viewContainerRef
     * @param _renderer
     * @returns {ComponentLoader}
     */
    createLoader<T>(_elementRef: ElementRef, _viewContainerRef: ViewContainerRef, _renderer: Renderer): ComponentLoader<T>;
}

I'm not sure what else to write. All my updates to my package.json have been updated with ncuthan ncu -u. I think I found a mistake. I found a post on GitHub, but that didn't help. Github

If I need to post anything else, let me know.

+4
source share
2 answers

, , ng2-bootstrap. Ref angular-2-with-ng2-bootstrap-and-karma-testing-final-adventure.

, .forRoot(). , - RibbonComponent .

+10

, modal ngx-bootstrap, spec.ts, : -

ModalModule.forRoot()

,

0

Source: https://habr.com/ru/post/1667283/


All Articles