You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Every now and then - I don't know exactly when, or I would happily tell you - that last error message repeats itself.
Reproducible Case
I think the main thing is that we use require.context to load all component in a project at once, and Vue.use them in bulk. Perhaps Vetur just simply doesn't see this piece of code, or doesn't know how to deal with it.
require.context is a specific webpack feature, so it's possible that we're doing things completely wrong. In that case, I feel lucky not to have been the bloke to set up our project, but I do have to make sense of it.
I can make a repro repo, but it'll take time (which I don't have enough of). If you really think it will actually lead to a solution, rather than "oh sorry, we can't support that" and wasting my time (no offense), then I'll be happy to create you something. Otherwise it might be better to point me to some advise on how to better import 200-or-so components. Because I'm totally new with Vue and I have no idea what Vue (and indeed Vetur) expects component imports to look like, or where they should live.
The text was updated successfully, but these errors were encountered:
Vetur: Restart VLS
Info
Problem
Every attempt to F12 a component to jump to its definition, or even the file that is associated with it, fails:
It does the same thing for every component reference in every template. We don't use aliases, just all relative imports.
I do get some errors from the language server, but I'm not sure if they are applicable to this issue:
Every now and then - I don't know exactly when, or I would happily tell you - that last error message repeats itself.
Reproducible Case
I think the main thing is that we use
require.context
to load all component in a project at once, andVue.use
them in bulk. Perhaps Vetur just simply doesn't see this piece of code, or doesn't know how to deal with it.require.context
is a specific webpack feature, so it's possible that we're doing things completely wrong. In that case, I feel lucky not to have been the bloke to set up our project, but I do have to make sense of it.I can make a repro repo, but it'll take time (which I don't have enough of). If you really think it will actually lead to a solution, rather than "oh sorry, we can't support that" and wasting my time (no offense), then I'll be happy to create you something. Otherwise it might be better to point me to some advise on how to better
import
200-or-so components. Because I'm totally new with Vue and I have no idea what Vue (and indeed Vetur) expects component imports to look like, or where they should live.The text was updated successfully, but these errors were encountered: