se-panfilov / vue-notifications

Vue.js agnostic library for non-blocking notifications
https://se-panfilov.github.io/vue-notifications/
MIT License
698 stars 54 forks source link

Usage with iziToast does not work when deployed #187

Open Edmund1645 opened 4 years ago

Edmund1645 commented 4 years ago

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)
e6vk4 commented 4 years ago

I am having the same issue.

zeruk commented 4 years ago

Same