nuxt icon indicating copy to clipboard operation
nuxt copied to clipboard

errors with jumbotron

Open erichodges opened this issue 7 years ago • 4 comments

I'm getting errors when using a jumbotron: Unknown custom element for the jumbotron Unknown custom element for v-divider

Is this a vuetify version issue? If so, how do I upgrade the template to the current vuetify?

Ok, I changed the version and the app crashed. Is this a Nuxt issue or a Vuetify issue?

erichodges avatar Mar 14 '18 22:03 erichodges

Hi, this error because you are using a-la-carte components: you have to include each component to use. open this file: /plugins/vuetify.js: then add your component like this: [v-divider as an example]:

import Vue from 'vue'
import {
  Vuetify,
  VApp,
  VCard,
  VNavigationDrawer,
  VFooter,
  VList,
  VBtn,
  VIcon,
  VGrid,
  VToolbar,
  VTooltip,
  VTextField,
  VDivider
} from 'vuetify'

Vue.use(Vuetify, {
  components: {
    VApp,
    VCard,
    VNavigationDrawer,
    VFooter,
    VList,
    VBtn,
    VIcon,
    VGrid,
    VToolbar,
    VTooltip,
    VTextField,
    VDivider
  }
})

NadhirBoukhenifra avatar Mar 18 '18 17:03 NadhirBoukhenifra

Ah ok, sorry, I forgot to add it there!

Thank you!

erichodges avatar Mar 18 '18 18:03 erichodges

I was going to open up a similar issue because the transitions didn't seem to work. Found out that it needed to be added even though it seems to be more of a batch of expected effects than a specific component per se. Perhaps we could note it in the documentation that components other than what are used in the starter need to be imported and activated separately in plugins/vuetify.js?

mariocontext avatar May 05 '18 04:05 mariocontext

when I used the method suggested by @NadhirBoukhenifra above, this is what I got;

TypeError
Cannot read property 'install' of undefined

jalasem avatar May 14 '18 03:05 jalasem