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
{{ message }}
Repository navigation
Vue Language Server crashing with latest version.Β #352
Code will present the message "The Vue Language Server server crashed 5 times in the last 3 minutes. The server will not be restarted." upon opening any .vue file.
Reproducible Case
Disable all installed extensions except for Vetur
Open a project with a jsconfig.json/tsconfig.json including only project files (I'm testing it with a clean copy of https://github.com/octref/veturpack )
Where would I be able to find more detailed error information? The developers tools' console only says "The Vue Language Server server crashed 5 times in the last 3 minutes. The server will not be restarted.".
Error: Cannot find module 'lodash' at Function.Module._resolveFilename (module.js:470:15) at Function.Module._load (module.js:418:25) at Module.require (module.js:498:17) at require (internal/module.js:20:19) at Object.<anonymous> (C:\Users\chris\.vscode\extensions\octref.vetur-0.9.3\client\node_modules\vue-language-server\dist\vueServerMain.js:8:11) at Object.<anonymous> (C:\Users\chris\.vscode\extensions\octref.vetur-0.9.3\client\node_modules\vue-language-server\dist\vueServerMain.js:227:3) at Module._compile (module.js:571:32) at Object.Module._extensions..js (module.js:580:10) at Module.load (module.js:488:32) at tryModuleLoad (module.js:447:12)
@tiago-plank Thanks for letting me know. Yeah sometimes when VSCode upgrade extensions, dependencies are not installed correctly, and that might be causing the problem.
I had this issue when opening a folder from a network resource in windows directly : code \\server\shared\folder\proj1
Vue Languaje Server shows: unable to open file \server\shared\folder\proj1\whatever.vue
(note the single slash in front of server)
As a workaround I mapped it to a unit letter and worked.
Not sure if it's some kind of bug or just a windows limitation.
Debugger listening on port 6005.
Warning: This is an experimental feature and could change at any time.
To start debugging, open the following URL in Chrome:
chrome-devtools://devtools/bundled/inspector.html?experiments=true&v8only=true&ws=127.0.0.1:6005/f1a623ff-9d58-4945-8ae6-2ec46ad23a1d
module.js:472
throw err;
^
Error: Cannot find module '/Users/bianlin/.vscode-insiders/extensions/octref.vetur-0.11.3/server/dist/vueServerMain.js'
at Function.Module._resolveFilename (module.js:470:15)
at Function.Module._load (module.js:418:25)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at Server. (/Users/bianlin/.vscode-insiders/extensions/octref.vetur-0.11.3/client/node_modules/vscode-languageclient/lib/utils/electronForkStart.js:110:9)
at emitOne (events.js:96:13)
at Server.emit (events.js:191:7)
at Pipe.onconnection (net.js:1486:8)
[Info - 15:00:19] Connection to server got closed. Server will restart.
Debugger listening on port 6005.
Warning: This is an experimental feature and could change at any time.
To start debugging, open the following URL in Chrome:
chrome-devtools://devtools/bundled/inspector.html?experiments=true&v8only=true&ws=127.0.0.1:6005/1ab41303-376e-4fda-bbef-cdce5bbc963d
module.js:472
throw err;
^
Error: Cannot find module '/Users/bianlin/.vscode-insiders/extensions/octref.vetur-0.11.3/server/dist/vueServerMain.js'
at Function.Module._resolveFilename (module.js:470:15)
at Function.Module._load (module.js:418:25)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at Server. (/Users/bianlin/.vscode-insiders/extensions/octref.vetur-0.11.3/client/node_modules/vscode-languageclient/lib/utils/electronForkStart.js:110:9)
at emitOne (events.js:96:13)
at Server.emit (events.js:191:7)
at Pipe.onconnection (net.js:1486:8)
[Info - 15:00:19] Connection to server got closed. Server will restart.
Debugger listening on port 6005.
Warning: This is an experimental feature and could change at any time.
To start debugging, open the following URL in Chrome:
chrome-devtools://devtools/bundled/inspector.html?experiments=true&v8only=true&ws=127.0.0.1:6005/59ce3be6-2ad3-4c08-a9b4-919a39851583
module.js:472
throw err;
^
Error: Cannot find module '/Users/bianlin/.vscode-insiders/extensions/octref.vetur-0.11.3/server/dist/vueServerMain.js'
at Function.Module._resolveFilename (module.js:470:15)
at Function.Module._load (module.js:418:25)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at Server. (/Users/bianlin/.vscode-insiders/extensions/octref.vetur-0.11.3/client/node_modules/vscode-languageclient/lib/utils/electronForkStart.js:110:9)
at emitOne (events.js:96:13)
at Server.emit (events.js:191:7)
at Pipe.onconnection (net.js:1486:8)
[Error - 15:00:19] Connection to server got closed. Server will not be restarted.
Activity
octref commentedon Jul 25, 2017
Any more error info? I'm guessing maybe it's only on Windows.
tiago-plank commentedon Jul 25, 2017
Where would I be able to find more detailed error information? The developers tools' console only says "The Vue Language Server server crashed 5 times in the last 3 minutes. The server will not be restarted.".
Is there anywhere else I could check?
ckaczor commentedon Jul 26, 2017
I get this on Windows:
Error: Cannot find module 'lodash' at Function.Module._resolveFilename (module.js:470:15) at Function.Module._load (module.js:418:25) at Module.require (module.js:498:17) at require (internal/module.js:20:19) at Object.<anonymous> (C:\Users\chris\.vscode\extensions\octref.vetur-0.9.3\client\node_modules\vue-language-server\dist\vueServerMain.js:8:11) at Object.<anonymous> (C:\Users\chris\.vscode\extensions\octref.vetur-0.9.3\client\node_modules\vue-language-server\dist\vueServerMain.js:227:3) at Module._compile (module.js:571:32) at Object.Module._extensions..js (module.js:580:10) at Module.load (module.js:488:32) at tryModuleLoad (module.js:447:12)octref commentedon Jul 27, 2017
@ckaczor Go to
C:\Users\chris\.vscode\extensions\octref.vetur-0.9.3\client\and runnpm install.octref commentedon Jul 27, 2017
@tiago-plank
In output panel, find
Vue Language Server.ckaczor commentedon Jul 27, 2017
@octref That fixed it - thanks! Not sure how those weren't there but I probably should have though of that.
tiago-plank commentedon Jul 27, 2017
Turns out I was getting the same error as @ckaczor, except the suggested fix did not work.
On the other hand, reinstalling the extension (which in hindsight, I should have tried from the start) did fix it.
octref commentedon Jul 27, 2017
@tiago-plank Thanks for letting me know. Yeah sometimes when VSCode upgrade extensions, dependencies are not installed correctly, and that might be causing the problem.
capgros commentedon Aug 29, 2017
I had this issue when opening a folder from a network resource in windows directly :
code \\server\shared\folder\proj1Vue Languaje Server shows:
unable to open file \server\shared\folder\proj1\whatever.vue(note the single slash in front of server)
As a workaround I mapped it to a unit letter and worked.
Not sure if it's some kind of bug or just a windows limitation.
472647301 commentedon Sep 22, 2017
As you said did not work, I reinstall it solved
CodeUndefind commentedon Dec 7, 2017
Debugger listening on port 6005.
Warning: This is an experimental feature and could change at any time.
To start debugging, open the following URL in Chrome:
chrome-devtools://devtools/bundled/inspector.html?experiments=true&v8only=true&ws=127.0.0.1:6005/f1a623ff-9d58-4945-8ae6-2ec46ad23a1d
module.js:472
throw err;
^
Error: Cannot find module '/Users/bianlin/.vscode-insiders/extensions/octref.vetur-0.11.3/server/dist/vueServerMain.js'
at Function.Module._resolveFilename (module.js:470:15)
at Function.Module._load (module.js:418:25)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at Server. (/Users/bianlin/.vscode-insiders/extensions/octref.vetur-0.11.3/client/node_modules/vscode-languageclient/lib/utils/electronForkStart.js:110:9)
at emitOne (events.js:96:13)
at Server.emit (events.js:191:7)
at Pipe.onconnection (net.js:1486:8)
[Info - 15:00:19] Connection to server got closed. Server will restart.
Debugger listening on port 6005.
Warning: This is an experimental feature and could change at any time.
To start debugging, open the following URL in Chrome:
chrome-devtools://devtools/bundled/inspector.html?experiments=true&v8only=true&ws=127.0.0.1:6005/1ab41303-376e-4fda-bbef-cdce5bbc963d
module.js:472
throw err;
^
Error: Cannot find module '/Users/bianlin/.vscode-insiders/extensions/octref.vetur-0.11.3/server/dist/vueServerMain.js'
at Function.Module._resolveFilename (module.js:470:15)
at Function.Module._load (module.js:418:25)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at Server. (/Users/bianlin/.vscode-insiders/extensions/octref.vetur-0.11.3/client/node_modules/vscode-languageclient/lib/utils/electronForkStart.js:110:9)
at emitOne (events.js:96:13)
at Server.emit (events.js:191:7)
at Pipe.onconnection (net.js:1486:8)
[Info - 15:00:19] Connection to server got closed. Server will restart.
Debugger listening on port 6005.
Warning: This is an experimental feature and could change at any time.
To start debugging, open the following URL in Chrome:
chrome-devtools://devtools/bundled/inspector.html?experiments=true&v8only=true&ws=127.0.0.1:6005/59ce3be6-2ad3-4c08-a9b4-919a39851583
module.js:472
throw err;
^
Error: Cannot find module '/Users/bianlin/.vscode-insiders/extensions/octref.vetur-0.11.3/server/dist/vueServerMain.js'
at Function.Module._resolveFilename (module.js:470:15)
at Function.Module._load (module.js:418:25)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at Server. (/Users/bianlin/.vscode-insiders/extensions/octref.vetur-0.11.3/client/node_modules/vscode-languageclient/lib/utils/electronForkStart.js:110:9)
at emitOne (events.js:96:13)
at Server.emit (events.js:191:7)
at Pipe.onconnection (net.js:1486:8)
[Error - 15:00:19] Connection to server got closed. Server will not be restarted.
zjt9363 commentedon Oct 19, 2018
thanks