Successful build with many errors in typescript typing files

后端 未结 2 632
再見小時候
再見小時候 2020-12-01 18:36

I have a problem with Visual Studio 2013 generating too many errors when building a web application with typescript definition files. For example consider the following scen

相关标签:
2条回答
  • 2020-12-01 18:50

    I was having a similar issues like this but I was able to resolve the jQuery issues by downgrading my DefinitelyTyped version of "1.0.1" instead of "1.4.1". Also I'm currently running on Mac and hopefully this can help users who are experiencing issues on Mac.

    0 讨论(0)
  • 2020-12-01 19:11

    The most likely reason for this is that you are using an older version of TypeScript than the definition author.

    The language is moving swiftly and some of the features in version 1.4 are particularly useful in definition files, so it is likely that you will need to upgrade to 1.4 so that your machine can understand these new features.

    Download version 1.4 here.

    0 讨论(0)
提交回复
热议问题