It's my experience that if I'm writing ES6 code and use the
import X from 'some-node-module'
autocompletions on X do not work and either ctrl-clicking on 'some-node-module' or right clicking and selecting 'Go to -> Declaration' does not work either.
If I change that code to be
var X = require('some-node-module');
Then I can go to declaration and get autocomplete suggestions.
This is annoying as I would love to use the ES6 imports (and the rather large project I'm working on already does that) but at the same time I'd like to get the benefit of autocompletes and go to definition functionality.
Is there any way to fix this in the IDE right now (settings etc.), if not then are there any plans to fix this in future releases ?
Thanks for any help!
I'm using Webstorm 10.0.4