Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to install plugin in Vue3? #60

Open
ThomasBullock opened this issue Sep 23, 2020 · 2 comments
Open

How to install plugin in Vue3? #60

ThomasBullock opened this issue Sep 23, 2020 · 2 comments

Comments

@ThomasBullock
Copy link

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)

@dominykasgithub
Copy link

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

@craigrileyuk
Copy link

craigrileyuk commented Oct 25, 2020

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants