Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[vue-tsc]: Watch mode doesn't pick up code-changes #1647

Closed
rs3d opened this issue Jul 28, 2022 · 5 comments · Fixed by #1655
Closed

[vue-tsc]: Watch mode doesn't pick up code-changes #1647

rs3d opened this issue Jul 28, 2022 · 5 comments · Fixed by #1655
Labels
bug Something isn't working

Comments

@rs3d
Copy link

rs3d commented Jul 28, 2022

Hi,

I'm trying to use vue-tsc --watch to see type errors of my vue-files,
although I'm not sure if this is already released, because I haven't found much information about using it in watch-mode.

But what I experienced:

First run it checks and complains about type errors like this:
const a:number = 'xxxx';
image

After removing the line with the error, the watch process runs again,
but still shows the error:
image

After restarting the vue-tsc manually, it shows no errors as expected.

Deps:
+-- vue-tsc@0.39.2
+-- vue: @2.7.8",
+-- @vue/composition-api@1.7.0
+-- @vue/runtime-dom@3.2.37
+-- typescript@4.7.4
+-- vite@3.0.3
+-- vite-plugin-checker@0.4.9
+-- vite-plugin-vue2@2.0.2
+-- vue-class-component@7.2.6
+-- vue-property-decorator@9.1.2
+-- vue-server-renderer@2.7.8
+-- vue-slider-component@3.2.18
+-- vue-template-compiler@2.7.8

on Win@11

@rs3d rs3d changed the title [vue-tsc]: Watch mode doesn't pock up code-changes [vue-tsc]: Watch mode doesn't pick up code-changes Jul 28, 2022
@xieyuheng
Copy link

same problem for me.

@xieyuheng
Copy link

xieyuheng commented Jul 30, 2022

I found version "0.39.0" works fine.

@johnsoncodehk johnsoncodehk linked a pull request Jul 30, 2022 that will close this issue
@johnsoncodehk johnsoncodehk added the bug Something isn't working label Jul 30, 2022
@danparm
Copy link

danparm commented Dec 1, 2022

This still appears to be a bug on v1.0.10

@douira
Copy link

douira commented Dec 4, 2022

I'm also experiencing vue-tsc not watching for file changes even if specified with --watch. Maybe this is an already patched upstream issue?

@stichingsd-vitrion
Copy link

Seems like it is still a issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants