Closed 9M6 closed 1 year ago
Can you show me how you use useRoute in the script? From where do you import it?
@victorgarciaesgi autoimport from nuxt.
I still need to see how you use it or more info, otherwise i can't find the problem
@victorgarciaesgi
useRoute
is strongly typed, and can't guess which page you're in. You need to provide the route name
Oh I see, I thought this would be by default for some reason. Got it! Thank you @victorgarciaesgi
Describe the bug I am getting type issues:
Volar: '__VLS_ctx.route.params' is of type 'unknown'.
when using the composableuseRoute()
Expected behavior
It should not show any type error, and the types should be correctly inferred.
Screenshots
Environnement infos
Your
pages
folder structureRun
npx tree-node-cli {your page folder path}
Your nuxt.config.ts Paste your modules config (and i18n config if you're using it)