-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to use vuetify in vue typescript? #112
Comments
Duplicate of #43 We also aren't using typescript 3.6 yet, so our typings might be invalid with it. |
And so...using typescript with vue + vuetify out of box is imopossible until now? |
I'm just starting a project with vuewjs, vuetify, typescript and electron. Since vuetify is written in typescript, there are already typings availabe (if you look in node_modules/vuetify, there is a subfolder types). This worked for me: In the file tsconfig.json I added the following to the compilerOptions:
and added "vuetify" to "types":
|
This is the solution to the problem |
thanks to .. vuetifyjs/vue-cli-plugins#112
vuetifyjs/vue-cli-plugins#112 69 Files | 399M | feature/custom-component | 11 files changed, 313 insertions(+), 109 deletions(-)
I have tried this, and everything else here suggested and the problem even still persists, can I get some further ideas? I am clueless and stuck pretty much and this is becoming quite frustrating. These are my dependencies, if it means something right now:
|
Ran into this with
Is that all it takes nowadays? If so, would it be reasonable to have the vuetify plugin just handle this the same way |
For me this did not worked. I just created this import Vue from 'vue';
import { Vuetify } from 'vuetify/types';
declare module 'vue/types/options' {
interface ComponentOptions<V extends Vue> {
vuetify?: Vuetify;
}
} A slight nuance: I also have a common declare module '*.vue' {
import Vue from 'vue';
export default Vue;
} Nuance is that if I merge these two |
With |
Environment
Browsers: Firefox 69.0 (x64)
OS: Windows 10 1809
Steps to reproduce
reference: #43 (comment)
Reproduction Link
https://github.com/LazyRichard/vuetify-typescript
Temporary Solutions
Change
import Vuetify from 'vuetify/lib';
to 'import Vuetify from 'vuetify'`but when i change this, font is shows browser default.
Other comments
What am i missing to do?
The text was updated successfully, but these errors were encountered: