question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

When project has jsconfig.json with path alias, ".vue" intellisense is slow

See original GitHub issue
  • I have searched through existing issues
  • I have read through docs
  • I have read FAQ

Info

  • Platform: win
  • Vetur version: 0.21.0
  • VS Code version: 1.34.0

Problem

when project with jsconfig.json has path alias, .vue intellisense is slow, *.js normal.

{
  "compilerOptions": {
    "baseUrl": ".",
    "paths": {
      "@/*": ["./src/@/*"],
       ...other 5 path maps,
      "$public/*": ["./src/$public/*"]
    }
  },
  "exclude": [
    "node_modules"
  ]
}

Reproducible Case

.vue

xccfxfsdfsd

.js

xccfxfsdfsd

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:6
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
arnold-grafcommented, Jul 10, 2019

I have the same situation using TypeScript with my tsconfig.json. It seems like the more aliases I have, the slower it gets.

0reactions
marvinsidecommented, Jan 3, 2020

I setup path-mappings a few days ago. Since then, Vetur is really slow.

It seems like Vetur is having a queue with file-states to analyze: If i start typing something like long_word, i can often see errors like:

'lon' is unknown
'long_' is unknown ( a few seconds later)
'long_wor' is unknown (more seconds later)

I’ll create a reproduction repository in the next few days.

Read more comments on GitHub >

github_iconTop Results From Across the Web

When project has jsconfig.json with path alias, ".vue ...
I setup path-mappings a few days ago. Since then, Vetur is really slow. It seems like Vetur is having a queue with file-states...
Read more >
VSCode Intellisense does not work with webpack + alias
Try creating a jsconfig.json and configuring the paths compiler options { "compilerOptions": { "baseUrl": ".", "module": "commonjs" ...
Read more >
Use jsconfig.json to improve VS Code IntelliSense on a Vue.js ...
It can be done by adding a jsconfig. json file in your project. In this file you will specify a mapping table to...
Read more >
FAQ | Vetur - GitHub Pages
json , jsconfig.json in your project, Vetur will use fallback settings. Some features such as including path alias, decorator, and import json won't...
Read more >
tsconfig.json path aliases not resolved in .vue files : WEB-38843
Is there work in progress for this bug? It's really one of the last problem appearing when using Vue + Typescript, and resolving...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found