error message is: [Vue warn]: Unknown custom element: < child >-did you register the component correctly? For recursive components, make sure to provide the "name" option.
Sub-component code
<template>
<div>
<div>{{message}}()</div>
</div>
</template>
<script>
export default {
props: {
message: String //<br>
},
created(){
alert(132456)
}
}
</script>
<style>
</style>
parent component code
<template>
<div class="content">
<child :message="str"></child>
</div>
</template>
<script>
import child from "../../components/componentsItem"
export default {
components:{child},
data() {
return {
str:"asdfasdfasdfsadffffffffff",
};
},
methods: {
},
components: {
},
mounted(){
}
}
</script>