question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

I’ve installed this package in an existing Vue 2 project started with vue cli and I can’t seem to get it working I have the following packages installed:

    "@vue/composition-api": "^1.0.0-rc.2",
    "@vueuse/motion": "^1.0.5",

my main.js looks like

import Vue from 'vue'
import VueCompositionAPI from '@vue/composition-api'

// Packages
import { MotionPlugin } from '@vueuse/motion'

Vue.use(VueCompositionAPI)
Vue.use(MotionPlugin);

export default new Vue({
    render: h => h(App),
}).$mount('#app');

I’ve tested the package in a Vue 3 project running with Vite and it’s works really well.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:16 (9 by maintainers)

github_iconTop GitHub Comments

3reactions
Tahulcommented, Feb 25, 2021

Hello @timmaier ;

There is no better advice I can give you than considering updating your app to Vue 3. 🤗

Still, I want Vue 2 to be compatible with this, as it is relying entirely on Composition API, that is available to Vue 2, there should be no issue.

The main “failing” point I can see is the directives, that are not working the exact same.

I’m still digging around this daily and hope I can get a fully working version really soon.

2reactions
timmaiercommented, Feb 28, 2021

Massive thankyou working in my Vue 2 project now!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Frequently Asked Questions - Vue.js
We are planning to provide extended support for Vue 2 for teams with such needs - if your team expects to be using...
Read more >
Vue - endoflife.date
Vue is a JavaScript framework for building user interfaces. ... Release, Released, Active Support, Security Support, Latest ... 2, 6 years ago.
Read more >
How long will Vue 2 be supported? : r/vuejs - Reddit
According to the roadmap, v2 will receive 1 more minor release (v2.7) which will then have 18 months of LTS. Security patches will...
Read more >
Should I Use Vue 3 or Vue 2 In 2022? | by Mayank Chaudhari
Already installed Vue CLI? Don't worry! The same CLI offers both Vue 2 as well as Vue 3 support :) To make a...
Read more >
Add TypeScript Support to Vue 2 Project | Ji ZHANG's Blog
You should also be familiar with Vue, vue-loader, and webpack. Vue 2 already has good support for TypeScript, and the recently published Vue...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found