question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Vetur crashes if checkJs is set to true and a vue file which modifies a watched value is opened

See original GitHub issue
  • I have searched through existing issues
  • I have read through docs
  • I have read FAQ

Info

  • Platform: Linux
  • Vetur version: 0.11.7
  • VS Code version: 1.21.1

Problem

When checkJs is set to true in tsconfig.json or jsconfig.json and a .vue file which modifies a watched value is opened, Vetur crashes.

Vetur crash

vetur crash4

Vetur crashing on files like this is almost identical to https://github.com/vuejs/vetur/issues/191#issuecomment-300405883

There is no output from Vue Language Server as it appears to crash. However, there is output from the Window log:

[renderer3] [error] Channel has been closed: Error: Channel has been closed
	at ExtHostOutputChannel.validate (/usr/share/vscode/resources/app/out/vs/workbench/node/extensionHostProcess.js:35883:23)
	at ExtHostOutputChannel.appendLine (/usr/share/vscode/resources/app/out/vs/workbench/node/extensionHostProcess.js:35863:18)
	at LanguageClient.error (/home/USER/.vscode/extensions/octref.vetur-0.11.7/node_modules/vscode-languageclient/lib/client.js:1592:28)
	at LanguageClient.logFailedRequest (/home/USER/.vscode/extensions/octref.vetur-0.11.7/node_modules/vscode-languageclient/lib/client.js:2050:14)
	at client.sendRequest.then (/home/USER/.vscode/extensions/octref.vetur-0.11.7/node_modules/vscode-languageclient/lib/client.js:721:24)
	at <anonymous>
Extensions CoenraadS.bracket-pair-colorizer
EditorConfig.EditorConfig
Keno.uikit-3-snippets
Shan.code-settings-sync
Sophisticode.php-formatter
WakaTime.vscode-wakatime
asabil.meson
christian-kohler.npm-intellisense
christian-kohler.path-intellisense
dbaeumer.vscode-eslint
demijollamaxime.bulma
donjayamanne.githistory
ecmel.vscode-html-css
felixfbecker.php-intellisense
formulahendry.auto-close-tag
formulahendry.auto-rename-tag
hnw.vscode-auto-open-markdown-preview
joelday.docthis
mblode.twig-language
minhthai.vscode-todo-parser
ms-python.python
octref.vetur
patrys.vscode-code-outline
rebornix.project-snippets
robertohuertasm.vscode-icons
wayou.vscode-todo-highlight
yycalm.linecount
zhuangtongfa.Material-theme

Reproducible Case

Open nextgensparx/veturpack in VS Code and then client/components/Test.vue.

It’s worth noting that if data2 is changed to data3 in watch, the issue goes away.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
octrefcommented, Mar 21, 2019

image

This seems to be solved in TS 3.3, which you can get by:

  • yarn add -D typescript@3.3 in workspace
  • "vetur.useWorkspaceDependencies": true

See #682 for details.

This issue will be completely gone after #1163.

1reaction
siphomatekecommented, Mar 8, 2019

@HerringtonDarkholme Can this be fixed now that https://github.com/Microsoft/TypeScript/issues/23198 has been closed? The latest version of Vetur (0.16.2) still crashes on the reproduction repository mentioned above.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Vetur crashes if checkJs is set to true and a vue file which modifies a ...
Problem. When checkJs is set to true in tsconfig.json or jsconfig.json and a .vue file which modifies a watched value is opened, Vetur...
Read more >
FAQ | Vetur - GitHub Pages
For 1, try disabling all other Vue related extensions. ... Vetur Crash. If it says cannot find module <some-module> , go to Vetur's...
Read more >
VSCode 所有的默认配置项 - CSDN博客
vscode.debug-server-ready: Open URI in browser if server under ... true }, // Configure extra paths to watch for changes inside the ...
Read more >
fork-ts-checker-webpack-plugin - npm
If true , reports issues after webpack's compilation is done. Thanks to that it doesn't block the compilation. Used only in the watch...
Read more >
A curated list of awesome things related to Vue.js
This template includes the VueJS client app and a backend API controller. vue-reddit-app A Reddit SPA demo built with Vue 2.X , Vue...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found