admin管理员组文章数量:1345016
When I try to define callback function using
() => { }
instead of
function () {}
I get this error from PhpStorm
How to fix this?
When I try to define callback function using
() => { }
instead of
function () {}
I get this error from PhpStorm
How to fix this?
Share Improve this question asked Apr 27, 2016 at 11:39 sansan 1471 silver badge5 bronze badges 1- Which version of PhpStorm are you using? – Rwd Commented Apr 27, 2016 at 11:50
1 Answer
Reset to default 11In the menu:
PhpStorm > Preferences > Languages & Frameworks > Javascript
You'll see a box that says: JavaScript Language Version.
You should be able to change the option to ECMAScript 6 and apply.
Also:
PhpStorm > Preferences > Editor > File Types Find ECMAScript 6 in the list and add *.vue to the registered patterns list. You could add it to the Javascript file type to for good measure.
本文标签: javascriptExpression expected in PhpStormStack Overflow
版权声明:本文标题:javascript - Expression expected in PhpStorm - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1743796587a2540545.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论