File location which record erorr log in ionic serve


#1

where is the file location which record log like this in ionic3?

Error: Uncaught (in promise): cordova_not_available
at c (http://localhost:8100/build/polyfills.js:3:19752)
at c (http://localhost:8100/build/polyfills.js:3:19461)
Thank you very much

nb: this log is example when i do ionic serve


#2

Check your app.module.ts:

@NgModule({
  declarations: [ AppComponent ],
  imports: [
    BrowserModule,
    CoreModule,
    IonicModule.forRoot(AppComponent, {
      backButtonText: ''
    })
  ],
  bootstrap: [ IonicApp ],
  entryComponents: [ AppComponent ],
  providers: [
    { provide: ErrorHandler, useClass: IonicErrorHandler }
  ]
})
export class AppModule {}

See: https://ionicframework.com/docs/api/util/IonicErrorHandler/


#3

i have add it in app module but it seems the erorr wont show


#4

How did you create the scaffolding for your App? For example:

ionic start myApp tabs

Ionic 3 or Ionic 4?

Which platforms did you add?

Do your plugins support the browser platform?