vue-tsc --noEmit --watch
does not report error after editing .vue files
#1082
Labels
bug
Something isn't working
Thanks for all the hard work on vue-tsc, it's great. I'm trying to invoke vue-tsc in JS API for vite-plugin-checker, and I found some issues in 0.33.2-patch.1.
Describe the bug
I created a new vue3-ts project by the official scaffold. And bump vue-tsc to 0.33.2-patch.1. Then run
pnpm exec vue-tsc --noEmit --watch
. Then I change the code in App.vue to<HelloWorld msg2="Hello Vue 3 + TypeScript + Vite" />
to make a type error. But no errors were thrown from the watch process. But the newly added type error in.ts
can be thrown in watch mode. And if start the watch process when there's already a type error in.vue
. It can report the initial error but will no longer report new errors in any.vue
file. So it looks like the modification on.vue
is not watched byvue-tsc
.Reproduction
pnpm create vite bug-vue-tsc
vue
andvue-ts
pnpm i vue-tsc@latest -D
pnpm exec vue-tsc --noEmit --watch
<HelloWorld msg=
to<HelloWorld msg1=
I made a stackblitz to reproduce it. https://stackblitz.com/edit/vitejs-vite-wegjku?file=src%2FApp.vue&terminal=dev
run
npm run watch
and changemsg1
tomsg2
. Still reportsmsg1
.Expected behavior
type error reported.
System info
System:
OS: macOS 12.3
CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
Memory: 173.82 MB / 32.00 GB
Shell: 5.8 - /bin/zsh
Binaries:
Node: 16.14.0 - ~/Library/Caches/fnm_multishells/19496_1647768370180/bin/node
Yarn: 1.22.18 - ~/Library/Caches/fnm_multishells/19496_1647768370180/bin/yarn
npm: 8.3.1 - ~/Library/Caches/fnm_multishells/19496_1647768370180/bin/npm
Browsers:
Chrome: 99.0.4844.74
Safari: 15.4
npmPackages:
vue-tsc: ^0.33.2-patch.1 => 0.33.2-patch.1
Package manager
pnpm@^6
The text was updated successfully, but these errors were encountered: