shakee93 / vue-toasted

🖖 Responsive Touch Compatible Toast plugin for VueJS 2+
https://shakee93.github.io/vue-toasted/
MIT License
2.21k stars 194 forks source link

TypeError: Cannot read property 'style' of null #208

Open mandixx opened 3 years ago

mandixx commented 3 years ago

For some reason I end up with this error which is strange

Here is how I register the Toasts in the main,js file

/**
 * TOASTS
 */
// register the plugin on vue
import Toasted from 'vue-toasted';
Vue.use(Toasted);

Here is how I use it in my component

mounted() {

    this.$toasted.show('test', {class: "test"});
    this.fetchProjects();
  },