Conflict with WPCal.io Plugin – Vue library
-
Hi,
I am Yuvaraj, Developer of WPCal.io WordPress plugin.
We have a common user. Who reported that a date picker is not appearing on the booking page of my plugin.On further investigation, both the plugins are using Vue library and having a conflict.
As per the following articles(https://blog.logrocket.com/use-vue-js-general-purpose-javascript-library/, https://vuejs.org/v2/cookbook/packaging-sfc-for-npm.html#What-does-my-packaged-component-look-like), Vue component initiates automatically if a global Vue(
window.Vue
) variable is declared.It looks like LearnPress plugin declares
window.Vue
andwindow.Vuex
etc. A few of the NPM modules used in my plugin initiates with thewindow.Vue
variable which is creating the issue in more than a couple places in my plugin.In order to fix the issue and avoid any future conflict with other plugins, please avoid using/declaring
window.Vue
variable, so that many Vue based plugins can co-exist on a single page. Please let me know if we have another solution or any other queries. My plugin is recently launched one, resolving this conflict sooner will be very helpful.Cheers,
Yuvaraj
- The topic ‘Conflict with WPCal.io Plugin – Vue library’ is closed to new replies.