Skip to content

Do not support [email protected] #183

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
JokerLZD opened this issue Nov 3, 2017 · 1 comment
Closed

Do not support [email protected] #183

JokerLZD opened this issue Nov 3, 2017 · 1 comment

Comments

@JokerLZD
Copy link

JokerLZD commented Nov 3, 2017

<script lang="ts">
import Vue from 'vue'
import Component from 'vue-class-component'

@Component({})
export default class HelloWorld extends Vue {
  msg: string = 'Welcome to Your Vue.js App'
}
</script>

When I use [email protected]

[tsl] ERROR in /Volumes/Mac/Projects/Vue/tsadmin/src/components/HelloWorld.vue.ts(27,2)
      TS2345: Argument of type 'typeof HelloWorld' is not assignable to parameter of type 'VueClass<Vue>'.
  Type 'typeof HelloWorld' is not assignable to type 'new (...args: any[]) => Vue'.
    Type 'HelloWorld' is not assignable to type 'Vue'.
      Types of property '$options' are incompatible.
        Type 'ComponentOptions<HelloWorld, DefaultData<HelloWorld>, DefaultMethods<HelloWorld>, DefaultComputed...' is not assignable to type 'ComponentOptions<Vue, DefaultData<Vue>, DefaultMethods<Vue>, DefaultComputed, PropsDef
inition<Rec...'.
          Type 'HelloWorld' is not assignable to type 'Vue'.

BUT [email protected] it's OK

Give me some advice,Thanks!

@HerringtonDarkholme
Copy link
Member

Please search existing issues.

#181

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