I have this error for a particular part in the code when accessing this.$vuetify
in my Nuxt.js app.
ERROR ERROR in components/equipment/QuickInfoCard.vue:21:20 19:51:29
TS2339: Property '$vuetify' does not exist on type '{ width(): string; height(): "100%" | "9em"; }'.
19 | },
20 | height() {
> 21 | switch (this.$vuetify.breakpoint.name) {
| ^^^^^^^^
22 | case 'sm': return "9em"
23 | default: return "100%"
24 | }
I already tried to add the TS type since that was a suggested solution
// tsconfig.json
"compilerOptions: [
...
"types": [
"@nuxtjs/vuetify", // <<
"@types/underscore",
"@types/node",
"@nuxt/types",
"@nuxtjs/auth-next"
]
...
]