javascript - False positive "Lexical declarations require ECMAScript 6" and "TypeScript 1.x feature.

After updating TypeScript to version 1.7 (the latest version at this time) I've been seeing Reshar

After updating TypeScript to version 1.7 (the latest version at this time) I've been seeing Resharper point out errors, for example when using namespace, const and let, even though they should be supported by this version of TypeScript.

For example:

TypeScript 1.x feature. Current language is 1.4

and

Lexical declarations (let and const) require ECMAScript 6 piler target. Current target is ECMAScript 5.

After updating TypeScript to version 1.7 (the latest version at this time) I've been seeing Resharper point out errors, for example when using namespace, const and let, even though they should be supported by this version of TypeScript.

For example:

TypeScript 1.x feature. Current language is 1.4

and

Lexical declarations (let and const) require ECMAScript 6 piler target. Current target is ECMAScript 5.

Share Improve this question edited Dec 8, 2015 at 3:28 Nic asked Dec 7, 2015 at 5:45 NicNic 12.9k20 gold badges84 silver badges106 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 15

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

To resolve this you can specify the version manually. Since this version of Resharper (the latest at this time of posting) doesn't support TypeScript 1.7, TypeScript 1.6 needs to be used.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744060293a4551658.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信