False positive "Lexical ads require ECMAScript 6" and "TypeScript 1.x". The current language is 1.4 "error messages

After updating TypeScript to version 1.7 (the latest version at the moment), I see Resharper errors, for example, when using namespace , const and let , although they must be supported by this version of TypeScript.

For example:

TypeScript 1.x. Current language - 1.4

Error 1

and

Lexical declarations (let and const) require the assignment of an ECMAScript 6 compiler. The current goal is ECMAScript 5.

Error 2

+8
javascript ecmascript-6 typescript resharper
source share
1 answer

It seems my version of Resharper (10.0.1) is unable to detect the TypeScript version.

To solve this problem, you can specify the version manually. Since this version of Resharper (the latest publication currently) does not support TypeScript 1.7, you must use TypeScript 1.6.

Reconfiguration Options

+15
source share

All Articles