2017-01-06 50 views
2

所以我有WebStorm JavaScript项目由Systemjs and JSPM驱动。小烦恼的是Webstorm无法看到全局System对象,所以标记为缺少导入语句中的config.js文件。WebStorm 2016.3.2“缺少导入声明”

我也跟着提示:

When using libraries that define their own global symbols outside 
their visible JavaScript code (e.g. describe() in Mocha), it is 
recommended that you add the corresponding TypeScript type definition 
file as a JavaScript library in Preferences | Languages & Frameworks | 
JavaScript | Libraries. 

而且从jspm_packages在我的项目的Webstorm设置JavaScript库添加system.js文件。

enter image description here

但它并没有帮助。任何想法我失踪?

回答

1

这对我有效。

  1. 列表
  2. 选择摩卡库点击右侧的“下载”按钮。
  3. 搜索摩卡
  4. 点击“下载并安装”按钮。

Download Library window