You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TS2339: Property '$vuetify' does not exist on type '{ isXs(): any; }'.
There is no error in VSCode. Intellisense is working, I can check types by mouse hover on vuetify elements.
If I comment the vuetify path in computed section and leave the method uncommented, then compilation errors are gone.
This Vue component is created by Vue.extend and project is compiled by webpack 4.
Don't know if this is important, but this class is places in *.ts file but imported in sfc component.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have a problem with typescript and vuetify to get to work together.
In tsconfig.json I have:
In component:
During compilation I got error:
In method:
I got
TS2339: Property '$vuetify' does not exist on type '{ isXs(): any; }'.
There is no error in VSCode. Intellisense is working, I can check types by mouse hover on vuetify elements.
If I comment the vuetify path in computed section and leave the method uncommented, then compilation errors are gone.
This Vue component is created by Vue.extend and project is compiled by webpack 4.
Don't know if this is important, but this class is places in *.ts file but imported in sfc component.
Webpack config:
I'm not an author of most of this webpack config, but except the vuetify part, other things are working. Can't find any clue how to fix this.
Packages:
"vuetify": "^2.2.22",
"vue": "^2.6.11",
"webpack": "^4.42.1",
"vue-loader": "^15.9.1",
"ts-loader": "^8.2.0",
"typescript": "^4.5.4",
NodeJS v8.12.0
Beta Was this translation helpful? Give feedback.
All reactions