Closed boonyasukd closed 3 years ago
Please check the version of node_modules/vscode-vue-languageservice/package.json
, if it's not 0.26.15, try delete yarn.lock / package-lock.json and install node_modules again to update vscode-vue-languageservice
.
@johnsoncodehk Ah, I can confirm that it runs without errors now. Thank you!!
Hi, I tried to upgrade an existing typescript project to
vite
andvue@3.2.1
(which usesvue-tsc@0.2.2
). The code seems to run just fine indev
mode, but it fails duringbuild
.Also, in VSCode, after commenting/uncommenting the offending line a couple of times,
volar
just suddenly marked the line in red with the following error (it didn't mark the line like this before):I tried to create a smaller reproduction project, but the error doesn't appear. Unfortunately this bug only happens to a private project which I cannot readily share. :-/
As a workaround, I disable
vue-tsc
fromnpm run build
for the time being.