Reputation: 1233
So I have WebStorm javascript project powered by Systemjs and JSPM
. Little annoying thing is that Webstorm can't see global System
object, so marks it as Missing import statement in the config.js file.
I followed a tip:
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.
And added system.js
file from jspm_packages to the Javascript libraries in the Webstorm settings of my project.
But it didn't help. Any idea what I am missing?
Upvotes: 4
Views: 4579
Reputation: 53
This worked for me.
Upvotes: 3