language-tools: Vue server crashed after upgrading to v2.0.21 in VSCode + Nuxt 3
Vue - Official extension or vue-tsc version
2.0.21
VSCode version
1.90.0
Vue version
3.4.27
TypeScript version
5.4.5
System Info
System:
OS: macOS 14.5
CPU: (8) arm64 Apple M3
Memory: 112.33 MB / 24.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 20.12.2 - ~/.nvm/versions/node/v20.12.2/bin/node
Yarn: 1.22.22 - /usr/local/bin/yarn
npm: 10.5.0 - ~/.nvm/versions/node/v20.12.2/bin/npm
pnpm: 9.1.4 - ~/.nvm/versions/node/v20.12.2/bin/pnpm
Browsers:
Chrome: 125.0.6422.142
Safari: 17.5
Steps to reproduce
just install the plugin and open a file with .vue extension.
Link to minimal reproduction
No response
Any additional comments?
- I have searched several issues about this topic, non of existed solutions works.
- the current project is based on nuxt 3, but it use options API rather than composable API, because it is a migration project between nuxt 2 to nuxt 3.
- I try to find a version works as expected by degrade the version(eg: v2.0.6), unluckily, non of 2.x version works. anyway, the plugin show a different error message like: '[Vue Named Pipe Client] No server found for <the path to the .vue file> ’ instead of crashing directly.
- I found a method to prevent the latest plugin to crash is removing all
lang="jsx"attr in codebase, anyway, the method cannot make sense, because we actually usejsxin codebase. - On the other hand, I found the plugin of v1.8.27 works well of my codebase, so if this issue will be closed with won’t fix, it is okay for me or others like me met similar issue.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 4
- Comments: 15 (3 by maintainers)
sorry for delay
@davidmatter @so1ve
the detail information I could provide as much as possible is describe in “Any additional comments?”, the reproduction steps is just simple as
install plugin and open a .vue file.the uglify logs is not related to my project but the Vue Language Server itself and I don’t know how to capture the error log with better readability.
@jagoncalves14
thanks for you suggestion, after upgrade to the
v2.0.25, the issue seems already been fixed by some commits, so I think we could close this issue safely.@jagoncalves14 Thanks for letting everyone know!
The issue no longer occurs even when
vscode-styled-componentsis enabled.Forcing Hybrid Mode to always be set to true will make language tools crash when there is other extensions that uses a ts plugin enabled, so we’d better left it to
autoto keep best compatibility. But sry I have no idea about the crash 😦I’m having trouble with the same crash.
I don’t know how to reproduce it. I mostly work with Nuxt3 projects, and when I open some of my projects, some reproduce and some don’t. Just opening them reproduces the problem. There are no specific steps to reproduce it.
All the projects that I can notice that reproduce the problem are work products, so I can’t share them.
I just tried creating a new project using Nuxt latest, but that didn’t reproduce it.
macOS 14.5
VSCode
I have the same problem, here is the log from output
Error: [UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash (“/”) character at p (/root/.vscode-server/extensions/vue.volar-2.0.21/dist/server.js:3:22193) at new f (/root/.vscode-server/extensions/vue.volar-2.0.21/dist/server.js:3:23300) at new k (/root/.vscode-server/extensions/vue.volar-2.0.21/dist/server.js:3:24396) at f.from (/root/.vscode-server/extensions/vue.volar-2.0.21/dist/server.js:3:24092) at Object.n [as asUri] (/root/.vscode-server/extensions/vue.volar-2.0.21/dist/server.js:76:10682) at f (/root/.vscode-server/extensions/vue.volar-2.0.21/dist/server.js:76:1286) at Object.d [as getModifiedTime] (/root/.vscode-server/extensions/vue.volar-2.0.21/dist/server.js:76:1064) at /root/.vscode-server/extensions/vue.volar-2.0.21/dist/server.js:76:5648 at Object.get (/root/.vscode-server/extensions/vue.volar-2.0.21/dist/server.js:3:10434) at x (/root/.vscode-server/extensions/vue.volar-2.0.21/dist/server.js:355:16489)
Node.js v18.18.2 [Error - 16:43:37] Server process exited with code 1. [Error - 16:43:37] The Vue server crashed 5 times in the last 3 minutes. The server will not be restarted. See the output for more information.
Please provide a more complete reproduction than
just install the plugin and open a file with .vue extension.You can find a good example here https://github.com/vuejs/language-tools/issues/4457