johnsoncodehk / vue-tsc

vue-tsc --noEmit && vite build
https://www.npmjs.com/package/vue-tsc
MIT License
241 stars 6 forks source link

checkbox input doesn't work with boolean value #56

Closed boonyasukd closed 3 years ago

boonyasukd commented 3 years ago

Hi, I tried to upgrade an existing typescript project to vite and vue@3.2.1 (which uses vue-tsc@0.2.2). The code seems to run just fine in dev mode, but it fails during build.

image

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):

image

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 from npm run build for the time being.

johnsoncodehk commented 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.

boonyasukd commented 3 years ago

@johnsoncodehk Ah, I can confirm that it runs without errors now. Thank you!!