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
I'm running into the following error when opening a Vue file. It looks like Neovim is looking for tsserverlibrary.js in my project's node_modules folder instead of Mason's installation directory for the language server, which does have it.
Error executing vim.schedule lua callback: ...neovim/HEAD-12fe197_1/share/nvim/runtime/lua/vim/lsp.lua:1284: RPC[Error] code_name = InternalError, message = "
Request initialize failed with message: Cannot find module '/Users/whollingsworth/<project-directory>/node_modules/typescript/lib/tsserverlibrary.js'
\
Require stack:\
- /Users/whollingsworth/.local/share/nvim/mason/packages/vue-language-server/node_modules/@volar/vue-language-server/out/node.js\
- /Users/whollingsworth/.local/share/nvim/mason/packages/vue-language-server/node_modules/@volar/vue-language-server/bin/vue-language-server.js"
stack traceback:
[C]: in function 'assert'
...neovim/HEAD-12fe197_1/share/nvim/runtime/lua/vim/lsp.lua:1284: in function ''
vim/_editor.lua: in function <vim/_editor.lua:0>
Why do you think this is an issue with mason-lspconfig.nvim?
Hello! I am unable to reproduce this. Do you have a sample repo perhaps? I tried vue create but were unable to reproduce (it also seems like that CLI is deprecated)
Oh, interesting. I was following a tutorial on Vue Mastery and wasn't aware that Vue CLI was in "maintenance mode". If I create a project with vuejs/create-vue instead, the server seems to start fine. I think it's fair to close this if Vue CLI is deprecated. Thank you!
Problem description
I'm running into the following error when opening a Vue file. It looks like Neovim is looking for
tsserverlibrary.js
in my project'snode_modules
folder instead of Mason's installation directory for the language server, which does have it.Why do you think this is an issue with mason-lspconfig.nvim?
williamboman/mason.nvim#108 mentioned a similar issue was fixed in this project.
Neovim version (>= 0.7)
Operating system/version
macOS Darwin Kernel Version 21.6.0 / Monterey 12.5.1
I've manually reviewed the Nvim LPS client log (
:LspLog
) to find potential errorsI've recently downloaded the latest plugin version of mason.nvim, mason-lspconfig.nvim, and nvim-lspconfig
Affected language servers
Volar
Steps to reproduce
vue create hello
)src/App.vue
Actual behavior
The server does not start because Neovim looks for a required library in the projects
node_modules
directory instead of the server'sExpected behavior
The server starts
LspInfo
Healthcheck
The text was updated successfully, but these errors were encountered: