kendo angular2 TabstripComponent错误

kendo angular2 TabstripComponent error

一切正常。现在更新到最新的软件包后,我收到以下错误:

Uncaught (in promise): Error: Error in ./TabstripComponent class TabstripComponent - inline template:29:26 caused by: Cannot read property 'templateRef' of undefined TypeError: Cannot read property 'templateRef' of undefined

所有其他 kendo angular 2 个控件工作正常,除了这个 TabstripComponent

请分享您对如何解决此问题的想法。

已编辑:

这是代码

在组件 html 页面中,

<kendo-tabstrip (select)="onTabSelected($event)"> 
        <kendo-tabstrip-tab [title]="'General'" [selected]="true">
            <district-general [generalComponentModel]="generalComponentModel" 
                (onExportChartImage)="onExportChartImage($event)" 
                (onExportClick)="onExportClick($event)">
            </district-general>
        </kendo-tabstrip-tab>
        <kendo-tabstrip-tab [title]="'Student'">
            <district-student [studentComponentModel]="studentComponentModel" (onExportChartImage)="onExportChartImage($event)"></district-student>
        </kendo-tabstrip-tab>
        <kendo-tabstrip-tab [title]="'Staff'">
            <district-staff [staffComponentModel]="staffComponentModel" (onExportChartImage)="onExportChartImage($event)"></district-staff>
        </kendo-tabstrip-tab>
        <kendo-tabstrip-tab [title]="'Longitudinal'">
            <district-longitudinal [longitudinalComponentModel]="longitudinalComponentModel" (onExportChartImage)="onExportChartImage($event)"></district-longitudinal>
        </kendo-tabstrip-tab>
    </kendo-tabstrip>

在应用程序模块页面中,它已被声明并使用如下:

@NgModule({
  bootstrap: [ App ],
  declarations: [
    App,
    About,
    Home,
    ......
  ],
  imports: [ // import Angular's modules
    .......
    .......
    LayoutModule, 
    RouterModule.forRoot(ROUTES, { useHash: true, preloadingStrategy: PreloadAllModules })
  ],
  providers: [ // expose our Services and Providers into Angular's dependency injection
    ENV_PROVIDERS,
    APP_PROVIDERS
  ]
})
export class AppModule {
  // I am using web pack for this angular2 application
}

并在 package.json 依赖项中

"@progress/kendo-angular-layout": "^0.17.0",

感谢您阅读本文。

我发现降级后的软件包运行良好。如果有人遇到同样的问题,请告诉我。

"@progress/kendo-angular-layout": "^0.11.0",