Closed
Description
This happens when using vue-class-component. Here is an example snippet. (Taken from https://class-component.vuejs.org/guide/class-component.html#other-options and converted to TS)
<template>
<OtherComponent />
</template>
<script lang="ts">
import Vue from 'vue'
import Component from 'vue-class-component'
import OtherComponent from './OtherComponent.vue'
@Component({
components: {
OtherComponent
}
})
export default class HelloWorld extends Vue {}
</script>
This happens because https://github.com/johnsoncodehk/volar/tree/master/packages/vue-language-service does not support vue-class-component syntax, so volar can't understand where the component definition is coming from.
I believe vue-class-component is still officially supported by Vue team, so we should have support for it in Volar as well.