yariksav / vuetify-confirm

Extends vuetify.js confirm dialog
MIT License
143 stars 42 forks source link

Cannot read property 'values' of undefined #20

Closed sudoloic closed 5 years ago

sudoloic commented 5 years ago

Hello,

it seems this.$vuetify.icons is undefined as I get the error cannot read property 'values' of undefined.

[...]
import vuetify from './plugins/vuetify';
import VuetifyConfirm from 'vuetify-confirm'

Vue.use(VuetifyConfirm, {
  vuetify
})

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

Am i doing something wrong ?

Using vuetify2, vuetify-confirm@2.0.0 and font awesome icons if that is of any help

sudoloic commented 5 years ago

Ok, I fixed it with :

Vue.use(VuetifyConfirm, {
  vuetify: vuetify
})
VictorioBerra commented 4 years ago

Same issue. That does not fix it. Neither does Vue.use(VuetifyConfirm, { $vuetify: veutifyObj.framework })

VictorioBerra commented 4 years ago

I needed:

import Vue from 'vue'
import Vuetify from 'vuetify/lib'

const veutifyObj = new Vuetify({
    theme: { dark: true },
});

Vue.use(VuetifyConfirm, { vuetify: veutifyObj })