Only works if put as last module
Rigo-m opened this issue · 2 comments
Rigo-m commented
I don't know if it's only on my project or in general. But while using nuxt-route-meta
in conjunction with @nuxtjs/composition-api
, by calling useRoute
in SSR I noticed that it only works if put as last module. Don't have time now to try to reproduce. Is there any reason it could work only as last module?
dword-design commented
@Rigo-m hmm not that I know of. The module needs to have the routes ready so that it can call this.extendRoutes
on them. Could it be that @nuxtjs/composition-api
changes how routes are generated? If there are modules that generate routes somehow, I guess they need to be before nuxt-route-meta
.
dword-design commented
Closing now. Feel free to reopen.