vue-cli3 configuration uses typescript, dynamic components can not be used, can not be displayed in chrome, the console prompts an error
Vue warn: Property or method "Hello" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property.
<template>
<div class="hello">
<h1>{{ msg }}</h1>
<hello></hello>
<component :is="Hello"></component>
</div>
</template>
<script lang="ts">
import { Component, Prop, Vue } from "vue-property-decorator"
import Hello from "./hello.vue"
@Component({
components: {
Hello
}
})
export default class HelloWorld extends Vue {
@Prop() private msg!: string;
}
</script>