vue-tippy icon indicating copy to clipboard operation
vue-tippy copied to clipboard

Uncaught (in promise) TypeError: ((intermediate value)(intermediate value)(intermediate value) || []).filter is not a function at getProps (vue-tippy.esm-browser.js:3727:133)

Open Pazulay opened this issue 2 years ago • 5 comments

Getting this error when using the directive.

screenshot

Pazulay avatar Aug 26 '22 14:08 Pazulay

can u share the repro link? https://codesandbox.io/s/vue? or github repo?

KABBOUCHI avatar Aug 26 '22 15:08 KABBOUCHI

Unfortunately it is a private repo from my company so I can't share it. And the project is way too big for me to recreate the issue in sandbox. But maybe you can help me if I explain a little bit more. I have to upgrade an old Vue2 project to Vue3 and the Vue2 version uses vue-tippy 0.3.3. I upgraded all of the frontend code to work with Vue3 and now I have vue-tippy "^6.0.0-alpha.63" and getting that error.

Pazulay avatar Sep 19 '22 09:09 Pazulay

I don't have this function getProps anymore on vue-tippy v6, try to reinstall it (uninstall and install again)

KABBOUCHI avatar Sep 19 '22 21:09 KABBOUCHI

I see. I don't even know where getProps is being used because it is not in the project.

This is an example of an element using v-tippy directive in my project:

<span
                class="m-form__info-text"
                title="..."
                v-tippy="{ theme: 'light', arrow: true, animation: 'shift', popperOptions: { modifiers: { preventOverflow: { boundariesElement: 'viewport' }}} }"
              >

It this still valid? Or are some of these configs deprecated and it is causing the error?

Pazulay avatar Sep 20 '22 14:09 Pazulay

popperOptions probably changed (v1->v2), plz check the popper doc https://popper.js.org/docs/v2/

try to remove popperOptions, and check it it works

KABBOUCHI avatar Sep 20 '22 14:09 KABBOUCHI

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Nov 22 '22 18:11 stale[bot]