admin管理员组文章数量:1356771
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 badges1 Answer
Reset to default 15It 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.
本文标签:
版权声明:本文标题:javascript - False positive "Lexical declarations require ECMAScript 6" and "TypeScript 1.x feature. 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744060292a2584006.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论