Vetur crashes if checkJs is set to true and a vue file which modifies a watched value is opened
See original GitHub issueInfo
- 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 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-colorizerEditorConfig.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:
- Created 5 years ago
- Comments:7 (5 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
@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.