Skip to content

Class Component static method is undefined #186

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

Closed
Qquanwei opened this issue Nov 7, 2017 · 3 comments · Fixed by #187
Closed

Class Component static method is undefined #186

Qquanwei opened this issue Nov 7, 2017 · 3 comments · Fixed by #187
Labels

Comments

@Qquanwei
Copy link

Qquanwei commented Nov 7, 2017

@Component
export default class MyComponent extends Vue {
  static Foo () {
  }
}
import MyComponent from 'MyComponent.vue'
console.log(MyComponent.Foo) // --> undefined
@ktsn ktsn added the need repro label Nov 7, 2017
@ktsn
Copy link
Member

ktsn commented Nov 7, 2017

Can you please provide a self-contained reproduction?

@Qquanwei
Copy link
Author

Qquanwei commented Nov 7, 2017

I product a jsfiddle
https://jsfiddle.net/nm55jnjk/17/

@cedeber
Copy link

cedeber commented Nov 14, 2017

Hi. It doesn't work with super.myMethod() neither.

@ktsn ktsn closed this as completed in #187 Nov 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants