WARNING in Duplicated path in loadChildren detected during a rebuild. We will take the latest version detected and override it to save rebuild time. This error will be reported when the You should perform a full build to validate that your routes don"t overlap.
project starts. Is there something wrong with the routing configuration?
const appRoutes: Routes = [
{ path: "", redirectTo: "", pathMatch: "full" },
{ path: "home", loadChildren: "./home/home.module-sharpHomeModule" },
];
const homeRoutes: Routes = [
{ path: "", component: HomeComponent,
canActivate: [AuthGuard],
children:[
{
path:"page",
component: PageComponent,
},
{
path:"more/:type",
component: MoreComponent,
},
{
path:"chance",
loadChildren:"../chance/chance.module-sharpChanceModule"
},
{
path:"apply",
loadChildren:"../apply/apply.module-sharpApplyModule"
},
{
path:"approval",
loadChildren:"../approval/approval.module-sharpApprovalModule"
},
{
path:"admin",
loadChildren:"../admin/admin.module-sharpAdminModule"
},
{
path:"forecast",
loadChildren:"../forecast/forecast.module-sharpForecastModule"
},
{
path:"saleForecast",
loadChildren:"../sale/forecast.module-sharpSalesForecastModule"
},
{
path:"customer",
loadChildren:"../customer/customer.module-sharpCustomerModule"
},
{
path:"visit",
loadChildren:"../visit/visit.module-sharpVisitModule"
},
{
path:"manager",
loadChildren:"../manager/manager.module-sharpManagerModule"
},
{
path:"report",
loadChildren:"../report/report.module-sharpReportModule"
}
]
},
];