vue-notifications icon indicating copy to clipboard operation
vue-notifications copied to clipboard

Usage with iziToast does not work when deployed

Open Edmund1645 opened this issue 4 years ago • 2 comments

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)

Edmund1645 avatar Mar 30 '20 22:03 Edmund1645

I am having the same issue.

e6vk4 avatar May 04 '20 11:05 e6vk4

Same

zeruk avatar Jun 02 '20 17:06 zeruk