-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not all routes in generated type "RoutesNamesList" #87
Comments
Seems the reason for this in my case is the fact that I have an Here's the output of
With this setup, I get the following type: export type RoutesNamedLocations = { name: 'audiobooks' } | { name: 'browse' } | { name: 'index' }; After removing export type RoutesNamedLocations =
| { name: 'audiobooks' }
| { name: 'browse' }
| { name: 'messages' }
| { name: 'not-found' }
| {
name: 'playlist-curated-id';
params: {
id: string | number;
};
}
| {
name: 'playlist-private-id';
params: {
id: string | number;
};
}
| { name: 'search' }; Which is as I need it 😅 All those files have the following code: <script lang="ts" setup>
</script>
<template>
<div>
</div>
</template> Please let me know if there's any other information that might be helpful. EDIT: Here's the repo: https://github.com/SimonSimCity/nuxt-typed-routes-bug |
Hi! Thanks for the details. Indeed that's a weird ouput |
Maybe a problem with |
Found the cause, will publish a patch shortly |
You can try on 3.1.5 |
Well, that doesn't really fix it in my particular case. I have the some settings set for When setting the property I've updated the repo accordingly - the changes chan be found in this commit: SimonSimCity/nuxt-typed-routes-bug@1fe1570 |
This isn't so relevant for me, as I need to set |
Weird! It's supposed to support all strategies, but as Nuxt made breaking changes in 3.4 maybe the nuxjs/i18n plugin isn't updated yet to support it either |
Okay the module changes it's default strategy, now it's |
@SimonSimCity is it working for you with the beta version? |
Yepp, works 🎉 |
In my project, I discovered that the type definition for
RoutesNamesList
only contains the first 3 of my pages, where the last one isindex
. Folders seem to be skipped as well as the files belowindex
.nuxt-typed-router:
3.1.4
nuxt:
3.4.2
Any idea of how I can get more information during
nuxt prepare
? I guess its some problem in there ...The text was updated successfully, but these errors were encountered: