TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
dip s
NA
256
81.7k
Error: Loading chunk 5 failed on MAC device
Oct 22 2019 1:00 AM
Hello all,
We have a cloud based application in angular 6 and asp.net MVC 5
Our application works fine on android, Chrome.
It does not work on MAC.
So, we install chrome on apple ipad and try to run our application. Login is successful and dashboard is getting displayed but when i am trying to open another page(e.g. Appointment) it shows error as "Error: loading chunk 5 failed"
Please help. Any help would be appreciated. Thank you
Code of app-routing.module.ts :
import
{ NgModule } from
'@angular/core'
;
import
{ Routes, RouterModule } from
'@angular/router'
;
const
routes: Routes = [
{ path:
''
, loadChildren: () =>
import
(
'./login/login.module'
).then(m => m.LoginModule) },
];
@NgModule({
imports: [RouterModule.forRoot(routes)],
exports: [RouterModule]
})
export
class
AppRoutingModule { }
Code of layout-routing.module.ts :
import
{ NgModule } from
'@angular/core'
;
import
{ Routes, RouterModule } from
'@angular/router'
;
import
{ LayoutComponent } from
'./layout.component'
;
const
routes: Routes = [
{
path:
''
,
component: LayoutComponent,
children: [
{ path:
'dashboard'
, loadChildren: () =>
import
(
'./dashboard/dashboard.module'
).then(m => m.DashboardModule) },
{ path:
'appointment'
, loadChildren: () =>
import
(
'./TransactionComponent/appointment/appointment.module'
).then(m => m.AppointmentModule)}
];
@NgModule({
imports: [RouterModule.forChild(routes)],
exports: [RouterModule]
})
export
class
LayoutRoutingModule { }
code of appointment.module.ts
import
{ NgModule } from
'@angular/core'
;
import
{ CommonModule } from
'@angular/common'
;
import
{ AppointmentComponent } from
'./appointment.component'
;
import
{ AppointmentRoutingModule } from
'./appointment-routing.module'
;
@NgModule({
declarations: [AppointmentComponent],
imports: [
CommonModule,
AppointmentRoutingModule,
PageHeaderModule,
NgbModule
],
providers: [AppointmentService]
})
export
class
AppointmentModule { }
For apple devices routing is not working properly. Please help.
Thank you.
Reply
Answers (
0
)
AngularJS CRUD Operation Using ASP.NET MVC
An unhandled exception occurred while processing the request