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

Issue with vue-class-component #201

Open
vertic4l opened this issue Apr 6, 2020 · 1 comment
Open

Issue with vue-class-component #201

vertic4l opened this issue Apr 6, 2020 · 1 comment

Comments

@vertic4l
Copy link

vertic4l commented Apr 6, 2020

Hi,

when using vue-class-component i got some overload issues, but why?

I already tried this workaround: (new Component()).$options
but doesn't work either...

No overload matches this call.
Overload 1 of 3, '(tag: string, componentDefinition: ComponentOptions<Vue, DefaultData, DefaultMethods, DefaultComputed, PropsDefinition<Record<string, any>>, Record<...>>, options?: options | undefined): void', gave the following error.
Value of type 'typeof CookieConsent' has no properties in common with type 'ComponentOptions<Vue, DefaultData, DefaultMethods, DefaultComputed, PropsDefinition<Record<string, any>>, Record<...>>'. Did you mean to call it?
Overload 2 of 3, '(tag: string, singleFileComponent: VueConstructor, options?: options | undefined): void', gave the following error.
Argument of type 'typeof CookieConsent' is not assignable to parameter of type 'VueConstructor'.
Type 'typeof CookieConsent' is missing the following properties from type 'VueConstructor': customElement, http
Overload 3 of 3, '(tag: string, asyncComponentDefinition: () => Promise<ComponentOptions<Vue, DefaultData, DefaultMethods, DefaultComputed, PropsDefinition<Record<string, any>>, Record<...>>>, options?: options | undefined): void', gave the following error.
Argument of type 'typeof CookieConsent' is not assignable to parameter of type '() => Promise<ComponentOptions<Vue, DefaultData, DefaultMethods, DefaultComputed, PropsDefinition<Record<string, any>>, Record<...>>>'.
Type 'typeof CookieConsent' provides no match for the signature '(): Promise<ComponentOptions<Vue, DefaultData, DefaultMethods, DefaultComputed, PropsDefinition<Record<string, any>>, Record<...>>>'

@vertic4l vertic4l closed this as completed Apr 6, 2020
@vertic4l vertic4l reopened this Apr 6, 2020
@karol-f
Copy link
Owner

karol-f commented Jul 7, 2020

Can You prepare CodeSandbox?

Also maybe use Vue.customElement("test-component", Component.prototype.constructor.options);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants