-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Type checking failed with [email protected]: Property 'flush' does not exist on type 'WatchOptions' #2232
Comments
Got same issue with vue 2.7.13. I am working around this issue by I think this is issue with vue instead of demi coz the type exported in vue 2.7 is (somehow magically?) compatible with both v3 and v2. Should we open issue on vue repo? |
same issue! |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Have same issue. Temporary added patch:
and added resolution in my
Hope this problem going to be solved asap |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Describe the bug
Running
vue-tsc
in a project withvue
of version 2.7 would report errors like this:It seems that vue 2.7 exports
WatchOptions
for Options API, not for Composition API:which has no
flush
property.A possible fix is to re-export
WatchOptions
fromvue/types/v3-generated
invue-demi
for v2.7 like:@antfu Any thoughts?
Reproduction
https://stackblitz.com/edit/vitejs-vite-z2pxyv?file=src/a.ts
Run
npx vue-tsc
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: