Building Android Package in Ionic AppFlow

Hi, I’ve got a working app - runs fine locally via ionic serve and also tested with android virtual device. I’m trying to build it in AppFlow. However, error occurs as follows…

ERROR in Could not resolve module ./profile/profile.module relative to app/app-routing.module.ts

My app-routing,module.ts as follows…

import { NgModule } from '@angular/core';
import { PreloadAllModules, RouterModule, Routes } from '@angular/router';
import {AuthGuard} from "./core/auth.guard";

const routes: Routes = [
  // { path: '', redirectTo: 'tabs', pathMatch: 'full' },
  { path: '', loadChildren: './tabs/tabs.module#TabsPageModule',
    canActivate: [AuthGuard]
  },
  { path: 'profile', loadChildren: './profile/profile.module#ProfilePageModule' },
  { path: 'work', loadChildren: './work/work.module#WorkPageModule' },
  { path: 'login', loadChildren: './login/login.module#LoginPageModule' },
  { path: 'signup', loadChildren: './login/signup/signup.module#SignupPageModule' },
  { path: 'forgot-password', loadChildren: './login/forgot-password/forgot-password.module#ForgotPasswordPageModule' },
  { path: 'notification', loadChildren: './notification/notification.module#NotificationPageModule' },
  { path: 'work/other-work', loadChildren: './work/other-work/other-work.module#OtherWorkPageModule' },
  { path: 'notification/:id', loadChildren: './notification/notification-details/notification-details.module#NotificationDetailsPageModule' },
  //{ path: 'profile/leave-manager', loadChildren: './profile/leave-manager/leave-manager.module#LeaveManagerPageModule' },

];
@NgModule({
  imports: [
    RouterModule.forRoot(routes, { preloadingStrategy: PreloadAllModules })
  ],
  exports: [RouterModule]
})
export class AppRoutingModule {}

It’s probably a simple thing but if anyone can direct me, it’ll be much appreciated.