KABBOUCHI / vue-tippy

VueJS Tooltip powered by Tippy.js
https://vue-tippy.netlify.app
MIT License
726 stars 87 forks source link

vue-tippy UMD module fails #261

Closed ZsharE closed 2 years ago

ZsharE commented 2 years ago

I added the UMD module to the project and i'm receiving an error in the console.

vue-tippy.umd.js?v=ZFXzpP_rTU5WfcS2Z5BaEEbwrwf-MmdVISt6SOBXdFM:5255 Uncaught TypeError: window.Vue.use is not a function
    at vue-tippy.umd.js?v=ZFXzpP_rTU5WfcS2Z5BaEEbwrwf-MmdVISt6SOBXdFM:5255:16
    at vue-tippy.umd.js?v=ZFXzpP_rTU5WfcS2Z5BaEEbwrwf-MmdVISt6SOBXdFM:4:29
    at vue-tippy.umd.js?v=ZFXzpP_rTU5WfcS2Z5BaEEbwrwf-MmdVISt6SOBXdFM:5:2

The error points to:

if (typeof window !== 'undefined' && window.Vue) {
    window.Vue.use(plugin);
    window.Vue.component('tippy', TippyComponent);
}

vue-tippy: 4.14.0 vue: 3.2.37

KABBOUCHI commented 2 years ago

plz use vue-tippy@v6 for vue 3 https://vue-tippy.netlify.app/installation

ZsharE commented 2 years ago

Seems like vue-tippy@v6 build doesn't create any packages.

npm install
npm run build
> vue-tippy@6.0.0-alpha.63 build
> SET NODE_ENV=production rollup -c rollup.config.js

Nothing happens.

KABBOUCHI commented 2 years ago

try to remove node_modules and install it again npm install vue-tippy@next

ZsharE commented 2 years ago

I managed to create the packages, thanks !