Closed jonaswikstrom closed 4 years ago
Hi there,
Have to be import Vuetify, { VSnackbar, VBtn, VIcon } from 'vuetify/lib'
You either have to export these components from your ./plugins/vuetify
or use vuetify/lib
import Vue from 'vue'
import Vuetify, { VSnackbar, VBtn, VIcon } from 'vuetify/lib'
import VuetifyToast from 'vuetify-toast-snackbar'
Vue.use(Vuetify, {
components: {
VSnackbar,
VBtn,
VIcon
}
})
Vue.use(VuetifyToast)
This doesn't work getting the same error as above. Using the standard vuetify webpack setup. @vue/cli 4.2.3 vuetify@2.2.18
I also get the same error as above. @eolant could you explain the error in fnoops code?
Probably an issue regarding me as a newbie: but
When creating project using Vue cli 3.0 vuetify is imported with
import
vuetify from './plugins/vuetify';`Using
import vuetify, { VIcon, VSnackbar } from './plugins/vuetify';
Results in:
export 'VSnackbar' was not found in './plugins/vuetify'
and
Unknown custom element: <v-snackbar> - did you register the component correctly?