我更新了我的angular2项目,之前它工作正常.但是现在我收到以下错误:
原文链接:https://www.f2er.com/angularjs/140916.htmlError: 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>; }
我不知道还有什么要发布.所有我通过ncu比ncu -u更新了我的package.json.我想我发现了一个错误.我确实在GitHub上找到了一个帖子,但它没有帮助. GitHub
如果我需要发布任何其他内容,请告诉我.