简体   繁体   English

KendoUI打字稿绑定ASP.NET MVC5无法编译

[英]KendoUI typescript binding for ASP.NET MVC5 not compiling

Anyone used the KendoUI Typescript bindings with an ASP.NET MVC5 application? 是否有人将KendoUI Typescript绑定与ASP.NET MVC5应用程序一起使用?

I dropped the bindings into my project and when I attempt to compile, Visual Studio reports 13000 errors. 我将绑定放入我的项目中,并且在尝试编译时,Visual Studio报告13000错误。 I wonder if this is an incompatibility between my TypeScript version and what Kendo depends on but cannot find any prerequisites in their doc . 我想知道这是否是我的TypeScript版本和Kendo所依赖的内容之间的不兼容,但是在其文档中找不到任何先决条件。

Some of these errors include: 其中一些错误包括:

C:\dev\quantra\src\AipsWebClient\AipsWebClient\kendo\typescript\kendo.all.d.ts(273,30): error TS2186: Type name 'Class' in extends clause does not reference constructor function for 'kendo.Class'.
1>  
1>C:\dev\quantra\src\AipsWebClient\AipsWebClient\kendo\typescript\kendo.all.d.ts(298,24): error TS2186: Type name 'Observable' in extends clause does not reference constructor function for 'kendo.Observable'.
1>  
1>C:\dev\quantra\src\AipsWebClient\AipsWebClient\kendo\typescript\kendo.all.d.ts(311,33): error TS2186: Type name 'Observable' in extends clause does not reference constructor function for 'kendo.Observable'.
1>  
1>C:\dev\quantra\src\AipsWebClient\AipsWebClient\kendo\typescript\kendo.all.d.ts(315,26): error TS2186: Type name 'View' in extends clause does not reference constructor function for 'kendo.View'.
1>  
1>

Perhaps you are hitting this issue: https://github.com/Microsoft/TypeScript/issues/171 也许您遇到了这个问题: https : //github.com/Microsoft/TypeScript/issues/171
I often replicate it wrongly including the class definitions twice... 我经常错误地复制它,包括类定义两次。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM