Closed dhust closed 4 years ago
Take a look at the docs on how to use it with nuxt : https://github.com/nuxt-community/modules/tree/master/packages/toast#usage
Take a look at the docs on how to use it with nuxt : https://github.com/nuxt-community/modules/tree/master/packages/toast#usage
Still getting same error
Uncaught (in promise) TypeError: Cannot read property 'show' of undefined
If I add
this.$toasted.show("Toasted !!")
todoStuff()
and do a hot reload, then it works.If I add it and then press the refresh button on the browser, then it gives me the error:
Cannot read property 'show' of undefined
Do I have to do an import or something? I just don't know why
this.$toasted
isundefined
, especially when it works on a hot reload.nuxt.config.js
plugins/toasted.js
index.vue