I am vue power user and I need in my project ALT+click (multiCursorModifier) on various vue component to jump into the definition/implementation.I have installed vetur and this is my settings.json vetur specific settings.
"vetur.experimental.templateInterpolationService": true,
"vetur.trace.server": "verbose"
This is my jsconfig.json
{
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@/*": ["./src/*"],
}
}
}
This is what I get when I click on my vue 2 component.
Unable to open 'vue-editor-bridge.ts': Unable to read file '\vue-temp\vue-editor-bridge.ts' (Error: Unable to resolve non-existing file '\vue-temp\vue-editor-bridge.ts').
All I want is click to definition to work. I have tried also vue peek extension with no success. How can I proceed further?
You need to declare your components as global components inside the vetur config file :
globalComponents: ['./components/**/*.vue']
More information in the vetur doc .
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.