Skip to content
Discussion options

You must be logged in to vote

The advice is not an absolute ban: the guide itself says to consider directories for very large applications (its example threshold is 100+ components), which matches your case.

Path-derived names solve the runtime registration collision, but they do not completely solve the editor problem: several tabs/search results can still be named Table.vue. The remaining trade-offs are directory navigation and path-based imports during refactors.

For a 100+ component Nuxt app, domain folders are reasonable. A practical compromise is:

components/report/sales/ReportSalesTable.vue
components/report/inventory/ReportInventoryTable.vue

Nuxt removes duplicate name segments, so you retain <ReportSalesTabl…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@dezhi-jacky-fu
Comment options

Answer selected by dezhi-jacky-fu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants