S
S
SPART4K632021-07-20 10:31:17
Vue.js
SPART4K63, 2021-07-20 10:31:17

How to import your component into another NUXT component?

Good morning.
I need to pass a component in the incoming data to another component.
The component I need is located in components/item/index.vue
60f67b3e7cad9338869259.png

When I try to connect import Item from './Item', it imports the component page/catalog/item/index.vue
60f67baf53585983883702.png

The component needs to be imported in this page
page/catalog/index.vue

Please tell me how to do it right

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Yarkov, 2021-07-20
@SPART4K63

Please tell me how to do it right

Specify the correct path to the component in the components directory.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question