M
M
mixejuxix2019-12-10 13:40:37
Vue.js
mixejuxix, 2019-12-10 13:40:37

Why doesn't recursive calling of components work in nuxt?

Hello, help with recursive components
There is a sandbox with nuxt https://codesandbox.io/s/elegant-frog-1gxiv
It has 2 components that call each other recursively

<question>
    <answer>
        <question>
            <answer>
             итд
            </answer>
        </question>
    </answer>
</question>

While doing this I get the error
[Vue warn]: Unknown custom element: <question> - did you register the component correctly? For recursive components, make sure to provide the "name" option.

But the names of the components are affixed and there shouldn't be any problems.
Where did I go wrong?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Aetae, 2019-12-12
@Aetae

# Circular references between components

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question