Error: Typescript Feature 1.5. Current language level is 1.4

后端 未结 6 1515
不知归路
不知归路 2021-02-04 23:08

I am working in the context of Visual Studio 2015 (with Resharper), and am referencing a TypeScript definitions file for NodeJS. I have 3 other VS projects that are using

6条回答
  •  悲哀的现实
    2021-02-04 23:21

    A little bit off topic but since I found this thread when looking for a solution on the error "ECMAScript 6 feature. Your current language level is: ECMAScript 5"...

    I want to add a note on Antons comment about ES6 and Resharper 10.

    If you get the error "ECMAScript 6 feature. Your current language level is: ECMAScript 5" it is possible to change the level in Resharper 9.1 as stated in this post How to use ECMAScript 6 syntax with Visual Studio 2013

    I´m running 9.2 now and just did this. Resharper Options > Javascript > Inspections > "change Javascript language level to ES6"

提交回复
热议问题