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

Throws error when component use mixin - Typescript #125

Closed
akki-jat opened this issue Jun 5, 2018 · 5 comments
Closed

Throws error when component use mixin - Typescript #125

akki-jat opened this issue Jun 5, 2018 · 5 comments

Comments

@akki-jat
Copy link

akki-jat commented Jun 5, 2018

When we create custom element with component which uses mixin its gives error.

Console Error

console_error

Cause of the Error

It cannot find _Ctor[0]

error_root_cause

ctor_variables

@karol-f
Copy link
Owner

karol-f commented Jun 5, 2018

Hi @akki-jat , it's working for me - https://codesandbox.io/s/2vkn88jv4r.

Can you please prepare CodeSandbox (you can fork above one) or GitHub repository showing the problem?

Can you please write what does this mixin have? Lifecycle hooks or sth else?

Regards!

@akki-jat
Copy link
Author

akki-jat commented Jun 5, 2018

@karol-f , I am talking about Typescript.
And I will sure provide repo.
And about mixin, this mixin only have two methods and no lifecycle hooks.

@akki-jat
Copy link
Author

akki-jat commented Jun 6, 2018

Hi @karol-f, sorry for delay.

Here the CodeSandbox

https://codesandbox.io/s/xp9v0rk40o

pls. check console for _Ctor

@karol-f
Copy link
Owner

karol-f commented Jun 6, 2018

Fixed in https://github.com/karol-f/vue-custom-element/releases/tag/v3.2.1. Thanks!

You can check that it's working - https://codesandbox.io/s/qxzo29y4l9

@karol-f karol-f closed this as completed Jun 6, 2018
@akki-jat
Copy link
Author

akki-jat commented Jun 6, 2018

Thanks @karol-f.
You are lighting fast.

@karol-f karol-f mentioned this issue Nov 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants