我目前正在使用angular2项目,它使用kendo-ui scrollview for angular2 今天,当我打开我的代码并执行npm安装并运行项目时出现错误 是满堆栈跟踪']在滚动视图中获取错误角色2的组件Kendo UI
Error: Uncaught (in promise): Error: Template parse errors:
TypeError: Cannot read property 'toUpperCase' of undefined (" <span class="k-icon k-i-arrowhead-e"></span>
</a>
<kendo-scrollview-pager [ERROR ->]*ngIf(pageable)
(pagerIndexChange)="pageChange($event)"
[data]="data"
"): [email protected]:32
Parser Error: Unexpected token :, expected identifier, keyword, or string at column 1 in [] in [email protected]:32 ("
</a>
<kendo-scrollview-pager *ngIf(pageable)
[ERROR ->](pagerIndexChange)="pageChange($event)"
[data]="data"
[activeIndex]="activeIndex""): [email protected]:10
Parser Error: Unexpected token :, expected identifier, keyword, or string at column 1 in [] in [email protected]:32 ("<kendo-scrollview-pager *ngIf(pageable)
(pagerIndexChange)="pageChange($event)"
[ERROR ->][data]="data"
[activeIndex]="activeIndex">
</kendo-scrollview-pager>
"): [email protected]:10
Parser Error: Unexpected token :, expected identifier, keyword, or string at column 1 in [] in [email protected]:32 ("
(pagerIndexChange)="pageChange($event)"
[data]="data"
[ERROR ->][activeIndex]="activeIndex">
</kendo-scrollview-pager>
</div>
"): [email protected]:10
Error: Template parse errors:
TypeError: Cannot read property 'toUpperCase' of undefined (" <span class="k-icon k-i-arrowhead-e"></span>
</a>
<kendo-scrollview-pager [ERROR ->]*ngIf(pageable)
(pagerIndexChange)="pageChange($event)"
[data]="data"
"): [email protected]:32
Parser Error: Unexpected token :, expected identifier, keyword, or string at column 1 in [] in [email protected]:32 ("
</a>
<kendo-scrollview-pager *ngIf(pageable)
[ERROR ->](pagerIndexChange)="pageChange($event)"
[data]="data"
[activeIndex]="activeIndex""): [email protected]:10
Parser Error: Unexpected token :, expected identifier, keyword, or string at column 1 in [] in [email protected]:32 ("<kendo-scrollview-pager *ngIf(pageable)
(pagerIndexChange)="pageChange($event)"
[ERROR ->][data]="data"
[activeIndex]="activeIndex">
</kendo-scrollview-pager>
"): [email protected]:10
Parser Error: Unexpected token :, expected identifier, keyword, or string at column 1 in [] in [email protected]:32 ("
(pagerIndexChange)="pageChange($event)"
[data]="data"
[ERROR ->][activeIndex]="activeIndex">
</kendo-scrollview-pager>
</div>
"): [email protected]:10
at SyntaxError.BaseError [as constructor] (http://localhost:4200/vendor.bundle.js:119575:27) [<root>]
at new SyntaxError (http://localhost:4200/vendor.bundle.js:7163:16) [<root>]
at TemplateParser.parse (http://localhost:4200/vendor.bundle.js:26588:19) [<root>]
at JitCompiler._compileTemplate (http://localhost:4200/vendor.bundle.js:66630:68) [<root>]
at http://localhost:4200/vendor.bundle.js:66513:62 [<root>]
at Set.forEach (native) [<root>]
at JitCompiler._compileComponents (http://localhost:4200/vendor.bundle.js:66513:19) [<root>]
at createResult (http://localhost:4200/vendor.bundle.js:66396:19) [<root>]
at Zone.run (http://localhost:4200/vendor.bundle.js:175827:43) [<root> => <root>]
at http://localhost:4200/vendor.bundle.js:176234:57 [<root>]
at Zone.runTask (http://localhost:4200/vendor.bundle.js:175865:47) [<root> => <root>]
at drainMicroTaskQueue (http://localhost:4200/vendor.bundle.js:176132:35) [<root>]
at SyntaxError.BaseError [as constructor] (http://localhost:4200/vendor.bundle.js:119575:27) [<root>]
at new SyntaxError (http://localhost:4200/vendor.bundle.js:7163:16) [<root>]
at TemplateParser.parse (http://localhost:4200/vendor.bundle.js:26588:19) [<root>]
at JitCompiler._compileTemplate (http://localhost:4200/vendor.bundle.js:66630:68) [<root>]
at http://localhost:4200/vendor.bundle.js:66513:62 [<root>]
at Set.forEach (native) [<root>]
at JitCompiler._compileComponents (http://localhost:4200/vendor.bundle.js:66513:19) [<root>]
at createResult (http://localhost:4200/vendor.bundle.js:66396:19) [<root>]
at Zone.run (http://localhost:4200/vendor.bundle.js:175827:43) [<root> => <root>]
at http://localhost:4200/vendor.bundle.js:176234:57 [<root>]
at Zone.runTask (http://localhost:4200/vendor.bundle.js:175865:47) [<root> => <root>]
at drainMicroTaskQueue (http://localhost:4200/vendor.bundle.js:176132:35) [<root>]
at resolvePromise (http://localhost:4200/vendor.bundle.js:176200:31) [<root>]
at resolvePromise (http://localhost:4200/vendor.bundle.js:176185:17) [<root>]
at http://localhost:4200/vendor.bundle.js:176234:17 [<root>]
at Zone.runTask (http://localhost:4200/vendor.bundle.js:175865:47) [<root> => <root>]
at drainMicroTaskQueue (http://localhost:4200/vendor.bundle.js:176132:35) [<root>]
任何人都知道为什么会发生这种情况。 itried更新所有角度相关的包到最新,但错误仍然是他们的。
请帮忙
你可以提供一个plunkr? – knikolov
现在不可能,因为我现在不使用Kendo UI来滚动视图,因为Kendo UI仍然处于测试状态 – Kaushal