Skip to content
Discussion options

You must be logged in to vote

Export a Vuetify instance from the plugin file:

import Vue from 'vue';
import Vuetify from 'vuetify';
import 'vuetify/dist/vuetify.min.css';

Vue.use(Vuetify);

const opts = {}

export default new Vuetify(opts)

And add it to the root Vue instance:

import Vue from 'vue';
import App from './App.vue';
import vuetify from './plugins/vuetify';

new Vue({
  vuetify,
  render: h => h(App)
}).$mount('#app');

Also make sure you are using the Vue2 plugin for Vite.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@ligne13
Comment options

Comment options

You must be logged in to vote
1 reply
@ligne13
Comment options

Answer selected by ligne13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants