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';
import { StatusBar } from '@ionic-native/status-bar';
import { SQLite, SQLiteObject } from '@ionic-native/sqlite';
import { MyApp } from './app.component';
import { HomePage } from '../pages/home/home';
@NgModule({
declarations: [
MyApp,
HomePage
],
imports: [
BrowserModule,
IonicModule.forRoot(MyApp)
],
bootstrap: [IonicApp],
entryComponents: [
MyApp,
HomePage
],
providers: [
StatusBar,
SplashScreen,
SQLite,
SQLiteObject,
{provide: ErrorHandler, useClass: IonicErrorHandler}
]
})
export class AppModule {}
Error
Close
Runtime Error
Can’t resolve all parameters for SQLiteObject: (?).
Stack
Error: Can’t resolve all parameters for SQLiteObject: (?).
at syntaxError (http://localhost:8100/build/main.js:76324:34)
at CompileMetadataResolver._getDependenciesMetadata (http://localhost:8100/build/main.js:89661:35)
at CompileMetadataResolver._getTypeMetadata (http://localhost:8100/build/main.js:89529:26)
at CompileMetadataResolver._getInjectableMetadata (http://localhost:8100/build/main.js:89515:21)
at CompileMetadataResolver.getProviderMetadata (http://localhost:8100/build/main.js:89805:40)
at http://localhost:8100/build/main.js:89734:49
at Array.forEach (native)
at CompileMetadataResolver._getProvidersMetadata (http://localhost:8100/build/main.js:89695:19)
at CompileMetadataResolver.getNgModuleMetadata (http://localhost:8100/build/main.js:89350:50)
at JitCompiler._loadModules (http://localhost:8100/build/main.js:100414:66)
Ionic Framework: 3.3.0
Ionic App Scripts: 1.3.7
Angular Core: 4.1.2
Angular Compiler CLI: 4.1.2
Node: 6.9.5
OS Platform: Windows 7
Navigator Platform: Win32
User Agent: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.81 Safari/537.36