From 09e76effab8de16ff6c6577b4c6948f6c049a54b Mon Sep 17 00:00:00 2001 From: gnoul_ Date: Sun, 14 Aug 2022 05:44:05 +0700 Subject: [PATCH] Change components directory path order Order is important. Root components path (~/component) must be placed last for this config to work. I've ran into this problem with my project, had to change my folders and paths many times until I read the config docs (https://v3.nuxtjs.org/api/configuration/nuxt.config#components) and saw that root components path must be placed last. --- content/en/docs/4.directory-structure/3.components.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/en/docs/4.directory-structure/3.components.md b/content/en/docs/4.directory-structure/3.components.md index 3aac993197..9166a17b40 100644 --- a/content/en/docs/4.directory-structure/3.components.md +++ b/content/en/docs/4.directory-structure/3.components.md @@ -139,8 +139,8 @@ If we want to use it as `` while keeping the directory structure ```bash{}[nuxt.config.js] components: { dirs: [ - '~/components', - '~/components/base/foo' + '~/components/base/foo', + '~/components' ] } ```