Closed vasan057 closed 5 years ago
I have the same problem
Can anyone provide more information on how to reproduce this issue?
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:
And there is no snackbar
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.
I'm using this template: https://github.com/tookit/vue-material-admin
Its not Nuxt.js. Init code is the one you provided
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
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.
I am getting app.js:142552 [Vue warn]: Unknown custom element: - did you register the component correctly?