Open maratumba opened 4 years ago
here is what works for me, hope it will work for you as well: under plugins, a file called vuetify.js
import Vue from 'vue'
import VuetifyToast from 'vuetify-toast-snackbar'
Vue.use(VuetifyToast)
in nuxt.config.js, in the plugins array, add this:
'@/plugins/vuetify',
let me know how it goes ;)
I'm using nuxt with vuetify. The instructions say to update
plugins/vuetify.js
to add the toast-snackbar but I don't have this in my default nuxt-vuetify config, which uses@nuxtjs/vuetify
module.I've tried to create a plugin anyway. But I'm getting an
Unknown custom element: <v-snackbar>
error after I added aplugins/toast.js
file, added it to theplugins
list innuxt.config.js
and put the following in it:I'm not sure what to do.