alex-oleshkevich / vue-introjs

intro.js bindings for Vue.
MIT License
301 stars 53 forks source link

current examples are not working #10

Closed rahulkumar-aws closed 6 years ago

rahulkumar-aws commented 6 years ago

Current examples are not working and integration instruction in README.md file is also not clear. Please add some nice integration document.

cmrd-senya commented 6 years ago

Confirm, I tried this with Rails + Webpack + Vue.js and it didn't work. I ended up using Intro.js directly.

alex-oleshkevich commented 6 years ago

@cmrd-senya @rahulkumar-aws what is an exact issue with it?

cmrd-senya commented 6 years ago

Here is how I used it in a Vue component:

import Vue from 'vue'
import VueIntro from 'vue-intro.js'

Vue.use(VueIntro);

This code ran with no errors.

Then I tried to access Vue.$intro or this.$intro but it failed. Also Vue.js reported me that v-intro-hint directive wasn't registered.

alex-oleshkevich commented 6 years ago

ok, i will look into it soon

cmrd-senya commented 6 years ago

I will try to provide you with a test application where it fails.

genzoadam commented 6 years ago

owww.. this is not work. I urgently need this.

alex-oleshkevich commented 6 years ago

I found the issue. It's only reproduced if you use ES5 version. Switch to ES6 to avoid it. I am looking into fix.

alex-oleshkevich commented 6 years ago

issue has been fixed. but prefet ES6 mode since now:

import VueIntro from 'vue-introjs';
Vue.use(VueIntro);