Vetur: Path completion in JS `import` does not work

Created on 10 Jan 2019  路  6Comments  路  Source: vuejs/vetur

  • [x] I have searched through existing issues
  • [x] I have read through docs
  • [x] I have read FAQ

Info

  • Platform: macOS
  • Vetur version: 0.14.5
  • VS Code version: 1.30.2

Problem

Autocomplete for imports does not work in single-file-components
Also autoimport does not work

I have VSCode with only vetur installed (tried reinstall)



vetur
vetur.log

Reproducible Case

(vue-cli)
vue create testapp

in App.vue try import "./" - there will be no useful suggestions
same with autoimporting

duplicate

Most helpful comment

its about auto import, but even autocomplete does not work

All 6 comments

its about auto import, but even autocomplete does not work

The feature is 'autocomplete path' in vetur very bad. does not support alias of vscode. And has very slow performance

Don't support multiple sub-project levels

I have same issue. It work great with .js .jsx but .vue don't work !

having the same issues here.
path autocomplete doesnt work at all.
and autoimport sometimes fails to work.
inside a object for example

this page in the docs makes me think it will work

but I also cannot make it work

I've had the same issue and for now I've found that the Path Intellisense plugin has been working for me to fill the void for path autocompletion.

Just wanted to post here in case anyone else was wondering about an alternative for this functionality.

Duplicate of #822 which is fixed in #1290.

Was this page helpful?
0 / 5 - 0 ratings