I have been using this package from two years with laravel blade as well as with my vue projects. It used to work fine, but now (from few previous version), components import is disabled. To clarify more,
import Vue from 'vue';
import vToastify from 'vue-toastify';
window.EventBus = new Vue();
window.flash = function (message, type) {
let statusObject = {
title: type + " !!!",
type: type,
body: message,
defaultTitle: true
}
EventBus.$emit('vtNotify', statusObject);
};
Vue.component('vue-toastify', vToastify);
Basically I am importing your src/components/VueToastify.vue component in flash js and define that in a window function, which later call from my php blade file.
Problem
Problem is I couldn't import that component now, and cause render error.
Solution
Allow to import src/components/VueToastify.vue this component.
I have been using this package from two years with laravel blade as well as with my vue projects. It used to work fine, but now (from few previous version), components import is disabled. To clarify more,
And blade templates would like
Basically I am importing your
src/components/VueToastify.vue
component in flash js and define that in a window function, which later call from my php blade file.Problem Problem is I couldn't import that component now, and cause render error.
Solution Allow to import
src/components/VueToastify.vue
this component.