The problem with typescript+vue

The

project uses the typescript style, and then customizes a component, but when called, did you register the component correctly? is reported. For recursive components, make sure to provide the "name" option.? Define the name of the component? But
< template lang="pug" >
div
< / template >

< script lang="ts" >
import {Component, Vue} from "vue-property-decorator";
@ Component
export default class extends Vue {}
< / script >

< style lang="less" scoped >

< / style >
ask this name to write like this!

Dec.21,2021

it's not the fault here. The mistake of
is a registration component naming problem


@Component({
  name: 'comp-name'
})
export default class extends Vue {}
.
Menu