I have recently updated to Angular 7.
I am working on Lazy loaded modules but I don't see #chunk.js anywhere in my network tab when I click the component in the lazy loaded module.
Contact us loads a component lazily but there is no #chunk.js in the network tab.
Here is how I am loading my module lazily.
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { ContactUsComponent } from 'src/app/modules/contactus/contactus.component';
import { ErrorComponent } from 'src/app/modules/error/error.component';
import { ContactUsRoutingModule } from 'src/app/modules/contactus/contactus-routing.module';
import { LandingComponent } from 'src/app/modules/landing/landing.component';
import { AboutUsComponent } from 'src/app/modules/aboutus/aboutus.component';
const routes: Routes = [
{ path: '', redirectTo: 'landing', pathMatch: 'full' },
{ path: 'landing', component: LandingComponent },
{ path: 'aboutus', component: AboutUsComponent },
{ path: 'contactus', loadChildren: './modules/contactus/contactus.module#ContactusModule' },
{ path: '**', component: ErrorComponent }
];
@NgModule({
imports: [RouterModule.forRoot(routes, { enableTracing: true })],
exports: [RouterModule]
})
export class AppRoutingModule { }
Am I missing out something or is the file #chunk.js renamed to some other file?
