I recently started using Ionic 3 and created an application that I'm trying to convert into an APK.
To generate a debug (or testing) android-debug.apk file, I used the following CLI command:
ionic cordova build android --prod
The pages are declared in both 'declarations' and 'entryComponents' sections of my app.module.ts.
Here is my app.module.ts code snippet:
@NgModule({
declarations: [
MyApp,
AboutPage,
ContactPage,
HomePage,
TabsPage,
LoginPage,
MobileScreenPage,
OtpScreenPage,
RegisterPage,
ForgotPasswordPage,
EditProfilePage,
MemberDetailPage
],
imports: [
BrowserModule,
HttpClientModule,
IonicModule.forRoot(MyApp)
],
bootstrap: [IonicApp],
entryComponents: [
MyApp,
AboutPage,
ContactPage,
HomePage,
TabsPage,
LoginPage,
MobileScreenPage,
OtpScreenPage,
RegisterPage,
ForgotPasswordPage,
EditProfilePage,
MemberDetailPage
],
providers: [
StatusBar,
SplashScreen,
{provide: ErrorHandler, useClass: IonicErrorHandler},
AuthServiceProvider
]
})
export class AppModule {}
Error: