Upon executing the
ionic cordova build android --release --prod
command, an error message is displayed in the console. Can anyone provide guidance on how to proceed? I am eagerly awaiting this to publish my app.
`Type LoginPage in c:/Users/Mike/Desktop/GuiaCorretor/src/pages/login/login.ts is part of
the declarations of 2 modules: AppModule in c:/Users/Mike/Desktop/GuiaCorretor/src/app/app.module.ts and LoginPageModule`
Below is my app.module.ts
:
import { LoginPage } from './../pages/login/login';
import { SobrePage } from '../pages/sobre/sobre';
import { PrediosPage } from "../pages/predios/predios";
import { NovidadesPage } from '../pages/novidades/novidades';
import { SocialPage } from '../pages/social/social';
@NgModule({
declarations: [
MyApp,
LoginPage,
SobrePage,
PrediosPage,
NovidadesPage,
SocialPage,
],
imports: [
BrowserModule,
IonicModule.forRoot(MyApp),
AngularFireModule.initializeApp(FIREBASE_CONFIG),
AngularFireAuthModule,
IonicStorageModule.forRoot()
],
bootstrap: [IonicApp],
entryComponents: [
MyApp,
LoginPage,
SobrePage,
PrediosPage,
NovidadesPage,
SocialPage,
],
providers: [
StatusBar,
SplashScreen,
{provide: ErrorHandler, useClass: IonicErrorHandler}
]
})
export class AppModule {}
The following snippet shows my login.module.ts
, including the import:
`import { NgModule } from '@angular/core';
import { IonicPageModule } from 'ionic-angular';
import { LoginPage } from './login';
@NgModule({
declarations: [
LoginPage,
],
imports: [
IonicPageModule.forChild(LoginPage),
],
})
export class LoginPageModule {}
`
![To complement, here's a snapshot displaying the error appearing in my terminal ]1