Meteor的WebStorm检查错误

时间:2017-09-14 17:20:09

标签: javascript meteor webstorm

我无法停用WebStorm检查通知。我已禁用所有检查,通知仍然存在。

基本上我尝试在if条件中给出命令(导入“任何东西”)并返回错误(但是当我运行Meteor工作正常时)。当我从条件中删除“import”命令时,通知消失。

//Works well
if(1 ==1){
    console.log("Hello world")
}

//On Meteor works well, but WebStorm informs "statement expected"
if (Meteor.isClient) {
    import "/imports/client/views/backoffice/activities/ads/ad/layout/admin_ad_layout"
}

//Works well
import "/imports/client/views/backoffice/activities/ads/ad/layout/admin_ad_layout"

0 个答案:

没有答案