Typescript error during --pro --release command

typescript error
Type FifthPage in G:/ionic_apps/PrayerApp2/blank/src/pages/fifth/fifth.ts is part of the declarations of 2
modules: AppModule in G:/ionic_apps/PrayerApp2/blank/src/app/app.module.ts and FifthPageModule in
G:/ionic_apps/PrayerApp2/blank/src/pages/fifth/fifth.module.ts! Please consider moving FifthPage in
G:/ionic_apps/PrayerApp2/blank/src/pages/fifth/fifth.ts to a higher module that imports AppModule in
G:/ionic_apps/PrayerApp2/blank/src/app/app.module.ts and FifthPageModule in
G:/ionic_apps/PrayerApp2/blank/src/pages/fifth/fifth.module.ts. You can also create a new NgModule that
exports and includes FifthPage in G:/ionic_apps/PrayerApp2/blank/src/pages/fifth/fifth.ts then import that
NgModule in AppModule in G:/ionic_apps/PrayerApp2/blank/src/app/app.module.ts and FifthPageModule in
G:/ionic_apps/PrayerApp2/blank/src/pages/fifth/fifth.module.ts.

Error: The Angular AoT build failed. See the issues above


Hi, I have the above problem when I try to run command
“ionic cordova build android --prod --release”

Please help me. Thanks

Try to call on imports, you will call a module from page, not the page.
Observation:
HomePage is not required on imports.

@NgModule({
  declarations: [
    MyApp,
    HomePage
  ],
  imports: [
    AnyPageModule,
    OtherPageModule
  ],
  bootstrap: [IonicApp],
  entryComponents: [
    MyApp,
    HomePage,
    AnyPage,
    OtherPage
  ],
  providers: [
    Camera,
    BarcodeScanner,
    StatusBar,
    SplashScreen
  ]
})
export class AppModule {}