简体   繁体   English

预期标识符改为看到“ {”

[英]Expected an identifier instead saw '{'

I am using Atom Editor with the linter and linter-jslint packages 我将Atom Editor与linter和linter-jslint软件包一起使用

I have my first line of code look like this : 我的第一行代码如下所示:

import {WakandaClient} from "wakanda-client";

And I get this error : 我得到这个错误:

Expected an identifier instead saw '{' 预期标识符改为看到“ {”

Would appreciate some feedback on why I am getting this error when my .jslintrc file contains the "es6":true parameter. 当我的.jslintrc文件包含"es6":true参数时,为什么会收到此错误,对此我们将不胜感激。

You can find the link to the github repo issue here 您可以在此处找到指向github repo问题的链接

Actually this come from that the linter-jslint package of atom use an old version of jslint. 实际上,这是由于atom的linter-jslint软件包使用了旧版本的jslint。

I use instead the linter-jslinter plugin. 我改用linter-jslinter插件。

I think that jslint is also still improving the way it handle the es6 features. 我认为jslint仍在改善其处理es6功能的方式。 But with this package I get a better jslint linter. 但是有了这个包,我得到了更好的jslint linter。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM