Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Usage with iziToast does not work when deployed #187

Open
Edmund1645 opened this issue Mar 30, 2020 · 2 comments
Open

Usage with iziToast does not work when deployed #187

Edmund1645 opened this issue Mar 30, 2020 · 2 comments

Comments

@Edmund1645
Copy link

Edmund1645 commented Mar 30, 2020

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
Copy link

e6vk4 commented May 4, 2020

I am having the same issue.

@zeruk
Copy link

zeruk commented Jun 2, 2020

Same

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants