2017-01-06 47 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