KABBOUCHI / vue-tippy

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

Moving to 6.0.0-alpha.40 from 39 gives options.plugins is undefined #224

Closed crystalfp closed 2 years ago

crystalfp commented 2 years ago

Thanks for this really useful plugin. Never had problems with alpha.39 under Vue3. upgraded to 40 and now I have this error during startup (imagine during .use(VueTippy, {theme: "material", delay: 400, animation: "scale", duration: 100, maxWidth: 150}):

Uncaught TypeError: options.plugins is undefined (vue-tippy.mjs:4325)
    getProps vue-tippy.mjs:4325
    mount vue-tippy.mjs:4413
    useTippy vue-tippy.mjs:4446
    mounted vue-tippy.mjs:4698
    callWithErrorHandling runtime-core.esm-bundler.js:6737
    callWithAsyncErrorHandling runtime-core.esm-bundler.js:6746
    invokeDirectiveHook runtime-core.esm-bundler.js:3046
    mountElement runtime-core.esm-bundler.js:3955
    flushPostFlushCbs runtime-core.esm-bundler.js:6938
    render runtime-core.esm-bundler.js:4945
    mount runtime-core.esm-bundler.js:3179
    mount runtime-dom.esm-bundler.js:1581
    <anonymous> main.ts:41
    ts app.js:1493
    __webpack_require__ app.js:849
    fn app.js:151
    1 app.js:1576
    __webpack_require__ app.js:849
    checkDeferredModules app.js:46
    <anonymous> app.js:925
    <anonymous> app.js:928

Hope this helps in diagnosing the problem. In the meantime I go back to alpha.39 Thanks again mario

KABBOUCHI commented 2 years ago

plz, can u try v6.0.0-alpha.41?

btw u need to use defaultProps https://vue-tippy.netlify.app/installation#install-vuetippy-globally-optional

createApp({})
.use(VueTippy, {
  defaultProps: {theme: "material", delay: 400, animation: "scale", duration: 100, maxWidth: 150}
})
crystalfp commented 2 years ago

Unfortunately I have the exactly same error as 40 with 41. BTW, I changed use() to:

.use(VueTippy, {
  defaultProps: {theme: "material", delay: 400, animation: "scale", duration: 100, maxWidth: 150}
})

Back again to 39.

crystalfp commented 2 years ago

Mysterious Vue... Now 41 works without problems. Just moved to npm run serve from vue ui. Then, with another restart it does not work anymore, and even the 39 gives the same error.

crystalfp commented 2 years ago

Reopening it, but seems related to a problem with my initialization code. Now I try to change the order of the use() calls (I have 4 of them), But has no effect. Return to 39 and now it works. No Idea what is happening in getProps vue-tippy.mjs:4325

KABBOUCHI commented 2 years ago

plz can u try v6.0.0-alpha.42?

crystalfp commented 2 years ago

No more errors with 42! But due to past experience, let me check a little longer, by reloading and recompiling. In the meantime thanks for the good work!

crystalfp commented 2 years ago

OK, seems no more problems. Eagerly waiting for the stable release. Thanks!