neoclide / coc-vetur

Vue language server extension for coc.nvim
219 stars 7 forks source link

Go to file doesn't work when I use alias import module #36

Closed vinibispo closed 3 years ago

vinibispo commented 4 years ago

When I use go to file in vue file with alias import module, that doesn't work


Example

import Home from '@/pages/Home'

That returns

E447: Can't find file "/pages/Home" in path

This is my jsconfig.json

{
    "compilerOptions": {
      "baseUrl": ".",
      "paths": {
        "@/*": [
          "src/*"
        ]   
      }   
    }
  }
pr0xyMity commented 4 years ago

Same problem :(

vinibispo commented 4 years ago

My solution for that was to use go to definition instead of go to file, because go to file isn't working

chemzqm commented 3 years ago

Issue of vim, not coc.nvim related.