amireh / guide.js

Elegant, interactive, and flexible JavaScript user tutorial library.
MIT License
4 stars 0 forks source link

Please support integration with a webpack application #7

Open cmrd-senya opened 6 years ago

cmrd-senya commented 6 years ago

I tried to run guide.js with a Vue.js + Webpack + Rails application but I failed to.

I somehow managed to modify dist/guide.js to be loaded within a Vue.js ES2016 component but tours never actually worked. I managed to get Guide object and call the library methods but when I ran Guide.show() or tour.start() it either went to a dead-loop or reported about exceeded call stack.

amireh commented 6 years ago

Sure, I'll take a look at that

amireh commented 6 years ago

FWIW, I remember hooking it up with React components so it should be doable with Vue.js too but it's been so long and the details are blurry to me

cmrd-senya commented 6 years ago

I'm not sure what fails exactly, maybe Vue.js itself is not guilty. I can try to create a test application where it fails, if that helps.

amireh commented 6 years ago

yes that'd be helpful

amireh commented 6 years ago

So, getting rid of the inter-dependencies assumed by the lack of a module bundler is more involved than I assumed. If you can get that test application up it may save me the time.

I'll look again at this over the weekend as time warrants.

cmrd-senya commented 6 years ago

I have to switch over to other tasks now, but I'll do my best to prepare a test app on the weekend.