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

Snotify just prints out JSON structure, while CSS applied

Open cloudscape-germany opened this issue 5 years ago • 1 comments

For me it just formats my window in red with the Questionmark and then just prints the JSON contents like this:

{body: 'My Notification Body',
title: 'Notification Title',config: {}}

Full Code:


export default {
  template: '#controls',
  methods: {
    displayNotification() {
      this.$snotify.error(
        {
        body: 'My Notification Body',
        title: 'Notification Title',
        config: {}
      });
    },

I use Snotify in the main.js file like this:

import Snotify from 'vue-snotify';

Vue.use(Argon);
Vue.use(Vuex);
Vue.use(VueHighlightJS, {
	languages: {
		javascript
	}
});
Vue.use(Snotify)
Vue.config.productionTip = false;

Anybody has an idea why it does not render the values of body and title keys?

cloudscape-germany avatar Jun 28 '20 17:06 cloudscape-germany

+1

i have the same problem

pishguy avatar Mar 31 '21 20:03 pishguy