Currently, I am in the process of setting up Vue 3 with TypeScript and utilizing class-based components. Unfortunately, I have encountered an issue while attempting to import the Component
decorator within the Vue
constructor:
An error message appears stating: 'This expression is not callable. Type 'typeof import("/Users/*folder*/node_modules/vue-class-component/dist/vue-class-component")' has no call signatures. Vetur(2349)'
mycode.vue:
<script lang="ts">
import Vue from 'vue'
import Component from 'vue-class-component'
@Component // Error #1 '@Component'
export default class ProdItem extends Vue { // Error #2 'Vue'
}
</script>