I am using latest nuxt version and when I tried to use the useRoute method is triggers a "Cannot Find name useRoute" but it works so I would like to know what could I be missing
My package json has these versions
"devDependencies": {
"@nuxt/devtools": "latest",
"@types/node": "^18",
"nuxt": "^3.6.1"
},
"dependencies": {
"@nuxt/image": "^1.0.0-rc.1",
"@nuxtjs/tailwindcss": "^6.8.0",
"@vuepic/vue-datepicker": "^5.3.0",
"nuxt-icon": "^0.4.1",
"nuxt-swiper": "^1.1.1"
}
The useRoute autocompletes fine in pages/index.vue
but if I try to use it in different vue file or directory inside pages it triggers the same error