Doesn't work with Vue 2.7.0+
samit4me opened this issue · comments
Versions
- 1.7.14
Describe the bug
When attempting to use vue-toastification with Vue 2.7.0+ the composition api doesn't appear to work due to Vue 2 now having the Composition API built-in.
Expected behavior
Instead of breaking the build, it should work without throwing errors
Steps to reproduce
Reproduction demo.
Steps:
- Install normally
- Set up plugin
- Using composition api install
- Fails to build
Your Environment
- Device: [e.g. iPhone6]
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]
Additional context
Any updates?
Any updates?
I couldn't get it working so stuck with the options api
I ended up using the normal plugin registration:
Vue.use(Toast, options);
and then referenced the instance to my utils/toast.js
:
import Vue from "vue";
export default Vue.$toast;
and use it as usual:
import toast from "~/utils/toast";
toast.success("It worked!");
any updates in the foreseeable future?