victorgarciaesgi/nuxt-typed-router

Support for nuxt 3.4

hi-reeve opened this issue · 7 comments

i have nested dynamic folder like this /:id/:document
but this leads to wrong typed route
the generated routes is like this

 'admin-master-data-vessel-id-document-create': {
        id: (string | number)[];
  };

and the resolved one is

 'admin-master-data-vessel-id-document-create': {
        id: string[];
    };

where its supposed to be like this

 'admin-master-data-vessel-id-document-create': {
        id: string | number;
       document: string | number;
  };

additional info, this happen if we use the latest nuxt 3.4.1

Yeah seems like they made a breaking change on how the paths are generated

Okay yeah related to this nuxt/nuxt#19902

Was tricky but support for nuxt 3.4.x is available in beta 3.1.4-beta.0
I will test on older nuxt version to see if it's still compatible

any eta this will be move to 3.4.1?

Should be today, working correctly on older versions