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

Snotify just prints out JSON structure, while CSS applied #97

Open
wethinkagile opened this issue Jun 28, 2020 · 1 comment
Open

Snotify just prints out JSON structure, while CSS applied #97

wethinkagile opened this issue Jun 28, 2020 · 1 comment

Comments

@wethinkagile
Copy link

wethinkagile commented Jun 28, 2020

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?

@pishguy
Copy link

pishguy commented Mar 31, 2021

+1

i have the same problem

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

2 participants