vue-notifications
vue-notifications copied to clipboard
Usage with iziToast does not work when deployed
Thanks a lot for this package it's been really helpful.
I was testing the different notifications library it has support for and I liked iziToast, I am using it in a Nuxt application in SPA mode and I have set everything correctly.
When I am developing locally, everything seems to work fine, the package works with iziToast but after I deploy, the notifications do not appear anymore.
a look at my plugin file:
import Vue from 'vue'
import VueNotifications from 'vue-notifications'
import iziToast from 'izitoast'
import 'izitoast/dist/css/iziToast.min.css'
function toast({ title, message, type, timeout, cb }) {
if (type === VueNotifications.types.warn) type = 'warning'
return iziToast[type]({ title, message, timeout })
}
const options = {
success: toast,
error: toast,
info: toast,
warn: toast
}
Vue.use(VueNotifications, options)
I am having the same issue.
Same