vue-mq icon indicating copy to clipboard operation
vue-mq copied to clipboard

How to install plugin in Vue3?

Open ThomasBullock opened this issue 5 years ago • 2 comments

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)

ThomasBullock avatar Sep 23 '20 07:09 ThomasBullock

since it came out, maybe there's plans for releasing update?

dominykasgithub avatar Oct 23 '20 13:10 dominykasgithub

@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

craigrileyuk avatar Oct 25 '20 23:10 craigrileyuk