And I use tern_for_vim to supply autocompletion to javascript files in vim.
Now, when I import a function like this:
import sprintf from 'underscore.string/sprintf';
And then do :TernDef on the sprintf, I'm not taken to the definition of sprintf and instead I get the error message as described in the title of this message.
However, when I import it like this:
import * as us from 'underscore.string';
I have working autocompletion on the us object, and :TernDef correctly brings me to the main.js file of underscore.string.
I get this message also on modules that don't live in node_modules, but not always :(
So I have the following configuration:
And I use
tern_for_vim
to supply autocompletion to javascript files in vim.Now, when I import a function like this:
And then do
:TernDef
on thesprintf
, I'm not taken to the definition of sprintf and instead I get the error message as described in the title of this message.However, when I import it like this:
I have working autocompletion on the
us
object, and:TernDef
correctly brings me to themain.js
file of underscore.string.I get this message also on modules that don't live in
node_modules
, but not always :(