小编Raz*_*van的帖子

Ionic 4 cordova cordova-plugin-facebook4:'FacebookOriginal'类型中缺少属性'provide'

我遇到了Ionic 4,Cordova,Angular6应用程序的问题.在cordova-plugin-facebook4安装并添加到app.module.ts文件之后,TS编译器会产生以下错误:

[ng] ? ?wdm?: Compiled successfully.
[ng] ERROR in src/app/app.module.ts(13,11): error TS2345: Argument of type '{ declarations: (typeof AppComponent)[]; entryComponents: undefined[]; imports: (ModuleWithProvid...' is not assignable to parameter of type 'NgModule'.
[ng]   Types of property 'providers' are incompatible.
[ng]     Type '(typeof SplashScreen | FacebookOriginal | { provide: typeof RouteReuseStrategy; useClass: typeof ...' is not assignable to type 'Provider[]'.
[ng]       Type 'typeof SplashScreen | FacebookOriginal | { provide: typeof RouteReuseStrategy; useClass: typeof I...' is not assignable to type …

cordova ionic4 angular6

4
推荐指数
1
解决办法
4524
查看次数

标签 统计

angular6 ×1

cordova ×1

ionic4 ×1