Maximum call stack size exceeded error

后端 未结 30 2609
独厮守ぢ
独厮守ぢ 2020-11-21 23:51

I am using a Direct Web Remoting (DWR) JavaScript library file and am getting an error only in Safari (desktop and iPad)

It says

Maximum call

30条回答
  •  臣服心动
    2020-11-22 00:31

    The issue in my case is because I have children route with same path with the parent :

    const routes: Routes = [
      {
        path: '',
        component: HomeComponent,
        children: [
          { path: '', redirectTo: 'home', pathMatch: 'prefix' },
          { path: 'home', loadChildren: './home.module#HomeModule' },
        ]
      }
    ];
    

    So I had to remove the line of the children route

    const routes: Routes = [
      {
        path: '',
        component: HomeComponent,
        children: [
          { path: 'home', loadChildren: './home.module#HomeModule' },
        ]
      }
    ];
    

提交回复
热议问题