Justineo / vue-clamp

Clamping multiline text with ease.
https://vue-clamp.vercel.app
MIT License
690 stars 89 forks source link

TypeError: (this.$slots.default || []).filter is not a function #51

Open cki5m3 opened 3 years ago

cki5m3 commented 3 years ago

Hi I'm using vueJs3 and I hit below error when I use the this lib. any idea?

Clamp.js?3f87:159 Uncaught (in promise) TypeError: (this.$slots.default || []).filter is not a function at Proxy.getText (Clamp.js?3f87:159) at Proxy.data (Clamp.js?3f87:25) at resolveData (runtime-core.esm-bundler.js?5c40:5771) at applyOptions (runtime-core.esm-bundler.js?5c40:5576) at finishComponentSetup (runtime-core.esm-bundler.js?5c40:6339) at setupStatefulComponent (runtime-core.esm-bundler.js?5c40:6273) at setupComponent (runtime-core.esm-bundler.js?5c40:6213) at mountComponent (runtime-core.esm-bundler.js?5c40:3969) at processComponent (runtime-core.esm-bundler.js?5c40:3945) at patch (runtime-core.esm-bundler.js?5c40:3556)

Justineo commented 3 years ago

This library isn’t Vue 3 compatible yet.

cki5m3 commented 3 years ago

Thanks, anyway the doc is misleading. I saw the section for Vue 3 setup, I though it is Vue 3 compatible. Any plan for Vue 3 support?

Justineo commented 3 years ago

I saw the section for Vue 3 setup

It is Vue CLI 3.