Ionic build prod --ios error..please help

Error

[19:08:10] ionic-app-scripts 3.2.4
[19:08:10] build prod started …
[19:08:10] clean started …
[19:08:10] clean finished in 4 ms
[19:08:10] copy started …
[19:08:10] deeplinks started …
[19:08:10] deeplinks finished in 74 ms
[19:08:10] ngc started …
[19:08:19] typescript error
Type HeaderMenuComponent in /Users/Prodata007/IBMSv2/IBMS/src/components/header-menu/header-menu.ts is part
of the declarations of 2 modules: AppModule in /Users/Prodata007/IBMSv2/IBMS/src/app/app.module.ts and
ComponentsModule in /Users/Prodata007/IBMSv2/IBMS/src/components/components.module.ts! Please consider
moving HeaderMenuComponent in /Users/Prodata007/IBMSv2/IBMS/src/components/header-menu/header-menu.ts to a
higher module that imports AppModule in /Users/Prodata007/IBMSv2/IBMS/src/app/app.module.ts and
ComponentsModule in /Users/Prodata007/IBMSv2/IBMS/src/components/components.module.ts. You can also create a
new NgModule that exports and includes HeaderMenuComponent in
/Users/Prodata007/IBMSv2/IBMS/src/components/header-menu/header-menu.ts then import that NgModule in
AppModule in /Users/Prodata007/IBMSv2/IBMS/src/app/app.module.ts and ComponentsModule in
/Users/Prodata007/IBMSv2/IBMS/src/components/components.module.ts.
[19:08:19] ionic-app-script task: “build”
[19:08:19] Error: The Angular AoT build failed. See the issues above
Error: The Angular AoT build failed. See the issues above
at /Users/Prodata007/IBMSv2/IBMS/node_modules/@ionic/app-scripts/dist/aot/aot-compiler.js:237:55
at step (/Users/Prodata007/IBMSv2/IBMS/node_modules/@ionic/app-scripts/dist/aot/aot-compiler.js:32:23)
at Object.next (/Users/Prodata007/IBMSv2/IBMS/node_modules/@ionic/app-scripts/dist/aot/aot-compiler.js:13:53)
at fulfilled (/Users/Prodata007/IBMSv2/IBMS/node_modules/@ionic/app-scripts/dist/aot/aot-compiler.js:4:58)
[ERROR] An error occurred while running subprocess ionic-app-scripts.
ionic-app-scripts build --prod --target cordova --platform ios exited with exit code 1.
Re-running this command with the --verbose flag may provide more information.

my app.module

@NgModule({
declarations: [
IBMS,
AboutPage,
ContactPage,
HomePage,
TabsPage,
LoginPage,
OpsOperationmodePage,
ProfilePage,
HeaderMenuComponent,
OpsTonnageHandledPage
],
imports: [
BrowserModule,
IonicModule.forRoot(IBMS),
FontAwesomeModule,
HttpClientModule
],
bootstrap: [IonicApp],
entryComponents: [
IBMS,
AboutPage,
ContactPage,
HomePage,
TabsPage,
LoginPage,
OpsOperationmodePage,
ProfilePage,
OpsTonnageHandledPage
],
providers: [
StatusBar,
SplashScreen,
{provide: ErrorHandler, useClass: IonicErrorHandler}, RestProvider,
GlobalProvider,
InAppBrowser
]
})

Type HeaderMenuComponent in /Users/Prodata007/IBMSv2/IBMS/src/components/header-menu/header-menu.ts is part
of the declarations of 2 modules: AppModule in /Users/Prodata007/IBMSv2/IBMS/src/app/app.module.ts and
ComponentsModule in /Users/Prodata007/IBMSv2/IBMS/src/components/components.module.ts! Please consider
moving HeaderMenuComponent in /Users/Prodata007/IBMSv2/IBMS/src/components/header-menu/header-menu.ts to a
higher module that imports AppModule in /Users/Prodata007/IBMSv2/IBMS/src/app/app.module.ts and
ComponentsModule in /Users/Prodata007/IBMSv2/IBMS/src/components/components.module.ts. You can also create a
new NgModule that exports and includes HeaderMenuComponent in
/Users/Prodata007/IBMSv2/IBMS/src/components/header-menu/header-menu.ts then import that NgModule in
AppModule in /Users/Prodata007/IBMSv2/IBMS/src/app/app.module.ts and ComponentsModule in
/Users/Prodata007/IBMSv2/IBMS/src/components/components.module.ts.

The errors are being pretty clear about what you need to do. You are using a component in 2 different module, which is not allowed. You either need to use it in only one, or create a common module that exports that component

https://angular.io/guide/sharing-ngmodules