I'm looking to implement nested directory functionality in Nuxt 3 beta with Vite.
In Nuxt 2, I successfully used the following configuration in (nuxt.config.js):
components: [
{
path: '~/components', // will get any components nested in let's say /components/test too
pathPrefix: false,
},],
My directory structure looks like this:
| components
- Header.vue
- Footer.vue
| sections
- HeroSection.vue
However, when I try to use <HeroSection/>
in pages/index.vue
, I encounter the following error:
[Vue warn]: Failed to resolve component: HeroSection
If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.
Invalid value used as weak map key
Is this feature no longer supported in Nuxt 3? Is there another way to configure it now? I couldn't find any relevant information in the documentation.
Thanks <3