簡體   English   中英

KendoUI打字稿綁定ASP.NET MVC5無法編譯

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

是否有人將KendoUI Typescript綁定與ASP.NET MVC5應用程序一起使用?

我將綁定放入我的項目中,並且在嘗試編譯時,Visual Studio報告13000錯誤。 我想知道這是否是我的TypeScript版本和Kendo所依賴的內容之間的不兼容,但是在其文檔中找不到任何先決條件。

其中一些錯誤包括:

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>

也許您遇到了這個問題: https : //github.com/Microsoft/TypeScript/issues/171
我經常錯誤地復制它,包括類定義兩次。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM