如何删除“在'@ angular / platform-b​​rowser'中找不到导出'__platform_browser_private__'”警告

时间:2019-07-16 21:41:44

标签: angular progress-bar warnings

我正在开发一个Angular应用程序,并将ngx-prograssbar模块添加到我的项目中后,我得到了这样的警告:我无法摆脱: “ ./node_modules/@angular/http/src/backends/xhr_backend.js 204:41-69 “在'@ angular / platform-b​​rowser'中找不到导出' platform_browser_private '”“ 谁能帮我。

我正在使用角度7

import { HttpClientModule, HTTP_INTERCEPTORS } from '@angular/common/http';
import { NgProgressModule, NgProgressInterceptor } from 'ngx-progressbar';

    @NgModule({
      declarations: [
        .....
      ],
      imports: [
        ...
        HttpClientModule,
        ....
        NgProgressModule
      ],
      entryComponents: [
        .....
      ],
      providers: [
        ...
        { provide: HTTP_INTERCEPTORS, useClass: NgProgressInterceptor, multi: true }
      ],
      bootstrap: [AppComponent]
    })
    export class AppModule { }

0 个答案:

没有答案