Uncaught Error: Can’t resolve all parameters for MyApp: ([object Object], ?, ?, ?, [object Object], [object Object]).
at syntaxError (compiler.js:485)
at CompileMetadataResolver._getDependenciesMetadata (compiler.js:15700)
at CompileMetadataResolver._getTypeMetadata (compiler.js:15535)
at CompileMetadataResolver.getNonNormalizedDirectiveMetadata (compiler.js:15020)
at CompileMetadataResolver._getEntryComponentMetadata (compiler.js:15848)
at compiler.js:15829
at Array.forEach ()
at CompileMetadataResolver._getEntryComponentsFromProvider (compiler.js:15828)
at compiler.js:15783
at Array.forEach ()
import { BrowserModule } from '@angular/platform-browser';
import { ErrorHandler, NgModule } from '@angular/core';
import { IonicApp, IonicErrorHandler, IonicModule } from 'ionic-angular';
import { SplashScreen } from '@ionic-native/splash-screen/ngx';
import { StatusBar } from '@ionic-native/status-bar/ngx';
import { Network } from '@ionic-native/network/ngx';
import { FormsModule } from '@angular/forms';
import { HttpClientModule, HTTP_INTERCEPTORS} from '@angular/common/http';
import { MyApp } from './app.component';
import { HomePage } from '../pages/home/home';
import { LoginPage } from '../pages/login/login';
import { LoginProvider } from '../providers/login/login';
import { ProductInformationPage } from '../pages/product-information/product-information';
import { ProductInformationProvider } from '../providers/product-information/product-information';
import { RequestInterceptorService } from '../bases/services/RequestInterceptorService';
import { AuthService } from '../bases/services/AuthService';
import { ProductDetailPage } from '../pages/product-detail/product-detail';
import { ProductActionPage } from '../pages/product-action/product-action';
import { SalesReportPage } from '../pages/sales-report/sales-report';
import { SalesReportProvider } from '../providers/sales-report/sales-report';
import { CashierReportPage } from '../pages/cashier-report/cashier-report';
import { CashierReportProvider } from '../providers/cashier-report/cashier-report';
import { ActionReportProvider } from '../providers/action-report/action-report';
import { ActionReportPage } from '../pages/action-report/action-report';
import { AboutUsPage } from '../pages/about-us/about-us';
import { BarcodeScanner } from '@ionic-native/barcode-scanner/ngx';
import {Camera} from '@ionic-native/camera/ngx';
@NgModule({
declarations: [
MyApp,
HomePage,
LoginPage,
ProductInformationPage,
ProductDetailPage,
ProductActionPage,
SalesReportPage,
CashierReportPage,
ActionReportPage,
AboutUsPage
],
imports: [
HttpClientModule,
BrowserModule,
IonicModule.forRoot(MyApp,{
backButtonText: '',
mode: 'md'
}),
FormsModule
],
bootstrap: [IonicApp],
entryComponents: [
MyApp,
HomePage,
LoginPage,
ProductInformationPage,
ProductDetailPage,
ProductActionPage,
SalesReportPage,
CashierReportPage,
ActionReportPage,
AboutUsPage
],
providers: [
{ provide: "apiUrl", useValue: "http://rxeysws.com:2328" },
// { provide: "apiUrl", useValue: "http://localhost:2828" },
{
provide: HTTP_INTERCEPTORS,
useClass: RequestInterceptorService,
multi: true
},
Network,
StatusBar,
SplashScreen,
{ provide: ErrorHandler, useClass: IonicErrorHandler },
ProductInformationProvider,
LoginProvider,
AuthService,
SalesReportProvider,
CashierReportProvider,
ActionReportProvider,
BarcodeScanner,
Camera
]
})
export class AppModule { }
here is the my ionic info:
Ionic:
Ionic CLI : 5.2.3 (C:\Users\Dogaç\AppData\Roaming\npm\node_modules\ionic)
Ionic Framework : ionic-angular 3.9.2
@ionic/app-scripts : 3.2.4
Cordova:
Cordova CLI : 9.0.0 (cordova-lib@9.0.1)
Cordova Platforms : ios 4.5.5
Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.2, cordova-plugin-ionic-webview 1.2.1, (and 8 other plugins)
Utility:
cordova-res : not installed
native-run : 0.2.8
System:
NodeJS : v10.16.0 (C:\Program Files\nodejs\node.exe)
npm : 6.9.0
OS : Windows 10
After I update ionic native things that are package.json, when I build the project, it gives an error at the top.