[Vuejs]-How to use Vue.use() in typescript?

0👍

For anyone that is looking for the solution to this issue: When using VueJs + Typescript and you want use a plugin such as Vuetify or VeeValidate.

For example VeeValidate do the following:

import Vue from "vue";

import VeeValidate from "vee-validate";

Vue.use(VeeValidate.install, { });

-2👍

In tsconfig.json add to “compilerOptions” section:

"module": "es2015"

Leave a comment