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
Error appears if file has any errors or warnings and I'm trying to get definition of first import
Set up looks like this
-- If you are using mason.nvim, you can get the ts_plugin_path like thislocalmason_registry=require('mason-registry')
localvue_language_server_path=mason_registry.get_package('vue-language-server'):get_install_path() ..'/node_modules/@vue/language-server'locallspconfig=require('lspconfig')
lspconfig.tsserver.setup {
init_options= {
plugins= {
{
name='@vue/typescript-plugin',
location=vue_language_server_path,
languages= { 'vue' },
},
},
},
filetypes= { 'typescript', 'javascript', 'javascriptreact', 'typescriptreact', 'vue' },
}
-- No need to set `hybridMode` to `true` as it's the default valuelspconfig.volar.setup {}
Edit
Checked in vscode and it works the same just doesn't show an error
The text was updated successfully, but these errors were encountered:
Seeing the same error when trying to find definition of HellowWorld.vue
And not seeing the error if disable hybirdMode
Yes tried disabling hybrid mode too. It has other problem, every time I change exports in a file or add a new file I have to restart the lsp to be able to import it with lsp
Getting this error when using vue with typescript
Error appears if file has any errors or warnings and I'm trying to get definition of first import
Set up looks like this
Edit
Checked in vscode and it works the same just doesn't show an error
The text was updated successfully, but these errors were encountered: