-
Notifications
You must be signed in to change notification settings - Fork 432
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
Using the decorator on a class with a static file #296
Comments
Well, I'm afraid I'm still not sure what your point is. What is actual code occurring your issue? Please provide a minimal and self-contained reproduction. |
Well, it is tough for me to do so because that bug does not occur on my system :"> @Component
class myControl extends Vue {
static someMethod(blah) { ... }
} The error occuring is exactly the one described in he link I gave; export function componentFactory<T extends VueClass<Vue>> (
Component: T,
options: ComponentOptions<Vue> = {}
): T { Of course, the signature of the |
Hmm, we cannot do anything without proper reproduction...
What the error message, by the way? |
This is what has been given to me : I tried to make a reproduction in https://github.com/eddow/eddow-bug-expo in the branch |
This is probably the same problem with #294. Please upgrade Vue to v2.5.20. |
Well, because of the unreproductible(?) nature of the problem, I think about nothing but to close the bug - I personally dodged the question by removing the static function from my library so it's indeed not really a problem even for me. Just passin' by - sorry to have bothered. |
When declaring a static function in the class being decorated by
Component
a typescript error (might) occur.The problem and the solution are here : microsoft/TypeScript#23704
Note: The problem occurs on some computers and not others, it must depend on some global stuff. Though, the static function is available even after going through the
Component
decorator as it is working on some installations.The text was updated successfully, but these errors were encountered: