-
Notifications
You must be signed in to change notification settings - Fork 429
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
v8 type error when register components in Options #441
Comments
Try this in vue-shim.d.ts. declare module '*.vue' {
import { ComponentOptions } from 'vue'
const _default: ComponentOptions
export default _default
} |
Ok, thks |
i've got the same problem, unfortunately that didn't help |
Please provide a self-contained reproduction to confirm. Thanks. |
In any case, it doesn't actually relate to vue-class-component as you do not use its typings but from the shim type. You may want to try it without vue-class-component and report to vue-next repo if it's still a problem for you. |
In my case this happens when i try using @options for register component in Vue 3 with TypeScript. |
https://github.com/syphzur/vue-ts-issue |
It's upstream type issue. vuejs/core#1943 |
when i resgister components in Options, the type error occurs: Type 'typeof xxx' is not assignable to type 'Component'.
Here is the type error:
the child component
the global declaration of *.vue file
The text was updated successfully, but these errors were encountered: