При импорте родительского компонента в дочерний появляется ошибка Unknown custom element: - did you register the component correctly? For recursive components, make sure to provide the "name" option.
Структура следующая:
<temp-сomponent>
<row-сomponent>
<col-сomponent>
тут импортируется родительский компонет (tempComponent) в
дочернем (colComponent)
</col-сomponent>
</row-сomponent>
</temp-сomponent>
При такой иерархии появляется вышеупомянутая ошибка. В чем может быть дело? Импорт следующий:
<template>
<div class="col-block">
<button @click="$emit('removeCol')">removeCol</button>
<div>
<temp-component></temp-component>
</div>
</div>
</template>
<script>
import tempComponent from './tempComponent';
export default {
name: "colComponent",
components: {tempComponent}
}
</script>
div
нуженname:
иcomponents:
неправильно записаны.