vue-mq
vue-mq copied to clipboard
How to install plugin in Vue3?
Installing plugins has changed in v3.
Can vue-mq be used with vue v3?
const chat = createApp(App);
chat.use(store);
chat.use(router);
chat.use(VueMq, {
breakpoints: {
mobile: 375,
tablet: 680,
laptop: 1280,
desktop: Infinity,
},
defaultBreakpoint: "mobile",
});
chat.mount("#app");
Results in vue-mq.es.js?660e:122 Uncaught TypeError: Vue is not a constructor at Object.install (vue-mq.es.js?660e:122) at Object.use (runtime-core.esm-bundler.js?5c40:3360)
since it came out, maybe there's plans for releasing update?
@dominykasgithub @ThomasBullock
I've forked this project for the purpose of supporting Vue 3. This fork is not backwards compatible with Vue 2.
It's undergone a fair few changes from this API since, they're all details on the Migration Guide featured on the website linked below.
Removed features:
- filter: Due to Vue 3's removal of filters, this has been removed
https://vue3-mq.info