eolant / vuetify-toast-snackbar

Basic Vue toast service that uses Vuetify Snackbar component.
MIT License
128 stars 36 forks source link

compoent not register #13

Closed vasan057 closed 5 years ago

vasan057 commented 5 years ago

I am getting app.js:142552 [Vue warn]: Unknown custom element: - did you register the component correctly?

JafarAkhondali commented 5 years ago

I have the same problem

eolant commented 5 years ago

Can anyone provide more information on how to reproduce this issue?

JafarAkhondali commented 5 years ago

Can anyone provide more information on how to reproduce this issue?

I did nothing special! just used your config, and tried to call the module: this.$toast.info('Info toast') Here is the result: image

And there is no snackbar

eolant commented 5 years ago

No mean what kind of environment is it? And what init code is? Please not that if you're using vue-loader you have to specify VSnackbar, VBtn, VIcon as global components. Refer to Nuxt.js set up.

JafarAkhondali commented 5 years ago

I'm using this template: https://github.com/tookit/vue-material-admin

Its not Nuxt.js. Init code is the one you provided

JafarAkhondali commented 5 years ago

Specified global components as mentioned in Nuxt.js, and it worked. But I'm not using Nuxt, so why should they registered globally? Perhaps better to fix it or mention this in the docs

eolant commented 5 years ago

Fair point, I'll add vue loader next to Nuxt.js. I believe original issue is the same and it's safe to close this.