Pages directory
If i want to create a page specific component do i have to use the components folder? like there's no way to create the component in the pages directory with the page itself
13 Replies
Not by default
You can check layers
Or what @Josh Deltener is doing @ https://deltener.com/blog/nuxt-enterprise-patterns-component-management/
Nuxt Enterprise Patterns: Component Management
Discover an alternative to the standard all-in-one components folder with Nuxt 3.
thanks, how would i take this approach with components too?
e.g
![No description](https://cdn.answeroverflow.com/1254485627207028766/image.png)
@manniL / TheAlexLichter
Not sure I understand the question
am i able to structure my components like i did in the image and still get the auto imports feature?
since if i make an index.vue file, nuxt wont be able to find the auto import
@manniL / TheAlexLichter i’m sorry for the pings i kinda need this bug fixed ;-;
not sure which bug you mean
you can choose freely how to use, import and name your components 🙂
i mean for auto imports
it’s not detecting my components because they’re called index.vue
that works fine for me
![No description](https://cdn.answeroverflow.com/1254807404961464361/image.png)
is it because of my core folder?
![No description](https://cdn.answeroverflow.com/1254808125635035227/image.png)