Closed AlivaPaul closed 1 year ago
The angular module appears to come from the @awesome-cordova-plugins/network
, which is a third party package. Apache Cordova doesn't maintain any angular wrappers, therefore we cannot do anything tpo resolve this issue.
Bug Report
Problem
Error: Invalid provider for the NgModule 'AppModule' - only instances of Provider and Type are allowed, got: [..., ..., ..., ..., ..., ..., ?[object Object]?, ...]
Command or Code
AppModule.ts import { Network } from '@awesome-cordova-plugins/network/ngx';
@NgModule({ declarations: [AppComponent], imports: [ HttpClientModule, BrowserModule, IonicModule.forRoot(), AppRoutingModule ], providers: [ Network, { provide: RouteReuseStrategy, useClass: IonicRouteStrategy }], bootstrap: [AppComponent], }) export class AppModule {}
Environment, Platform, Device
Ionic:
Ionic CLI : 6.20.1 (C:\Users\aliva\AppData\Roaming\npm\node_modules\@ionic\cli) Ionic Framework : @ionic/angular 6.2.8 @angular-devkit/build-angular : 14.2.3 @angular-devkit/schematics : 14.2.3 @angular/cli : 14.2.3 @ionic/angular-toolkit : 6.1.0
Cordova:
Cordova CLI : 11.0.0 Cordova Platforms : android 10.1.2 Cordova Plugins : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 5.0.0, (and 8 other plugins)