victorgarciaesgi / nuxt-typed-router

🚦Provide autocompletion and typecheck to Nuxt router
https://nuxt-typed-router.vercel.app
MIT License
353 stars 12 forks source link

Nested dynamic routes on nuxt2 branch are broken #52

Open AndreasMietk opened 1 year ago

AndreasMietk commented 1 year ago

Hello, my colleque and i noticed, that a pages folder like the following breaks the routes generated object.

├── index.vue
├── _sub
│   ├── helloWorld.vue
│   └── index.vue
└── _sub.vue

The routes under the _sub directory aren't recognized or even undefined.

Omitting the _sub.vue fixes the issue, but i loose the nested route component with <NuxtChild> in it.

├── index.vue
├── _sub
     ├── helloWorld.vue
     └── index.vue

Thanks for reading!

victorgarciaesgi commented 1 year ago

Hi! I'll look at this

AndreasMietk commented 1 year ago

Thank you very much!

acibilous commented 1 year ago

same for nuxt3