vue-slider-component icon indicating copy to clipboard operation
vue-slider-component copied to clipboard

TypeError: Super expression must either be null or a function

Open baozai6795 opened this issue 1 year ago • 8 comments

vue 3

image

baozai6795 avatar Aug 08 '23 09:08 baozai6795

ue-property-decorator vue3 Not Supported

baozai6795 avatar Aug 08 '23 10:08 baozai6795

I have this same issue too on Nuxt3 (vue3) with server-side or not.

DraftProducts avatar Aug 12 '23 10:08 DraftProducts

The vue3 version needs to be installed using @next.

The vue-property-decorator dependency has been removed in the v4.1.0-beta.7 version

NightCatSama avatar Aug 13 '23 15:08 NightCatSama

npm install vue-slider-component@next works for me. Thanks!

CaRniFeXeR avatar Aug 22 '23 07:08 CaRniFeXeR

@NightCatSama @next work well for nuxt 3 vue 3, but, on nuxt-bridge, vue 2 if I use 3.2.25, it throw same error in in this issue if I use @next, it throw another error

TypeError: (0 , o.resolveComponent) is not a function
    at Proxy.l (vue-slider.vue:9:38)
    at Vue._render (vue.runtime.esm.js?v=32632597:2684:28)
    at VueComponent.updateComponent (vue.runtime.esm.js?v=32632597:3864:28)
    at Watcher.get (vue.runtime.esm.js?v=32632597:3446:33)
    at new Watcher (vue.runtime.esm.js?v=32632597:3436:51)
    at mountComponent (vue.runtime.esm.js?v=32632597:3892:5)
    at Vue.$mount (vue.runtime.esm.js?v=32632597:8772:12)
    at init (vue.runtime.esm.js?v=32632597:4407:19)
    at createComponent (vue.runtime.esm.js?v=32632597:6567:17)
    at createElm (vue.runtime.esm.js?v=32632597:6521:13)

Do you have any idea?

yanghoxom avatar Oct 27 '23 10:10 yanghoxom

I had too many problems with nuxt3, I just migrated to @vueform/slider.

DraftProducts avatar Oct 28 '23 15:10 DraftProducts

I have this issue using plain Vue 3.3.11; same error as OP.

With vue-slider-component@next, it still does not work for me.

npm install vue-slider-component@next

package.json:

"vue": "^3.3.11",
"vue-slider-component": "^4.1.0-beta.7"

kalnode avatar Feb 14 '24 14:02 kalnode

UPDATE: WORKING

Using npm install vue-slider-component@next ("vue-slider-component": "^4.1.0-beta.7")

Still had an error, however as usual, when dealing with mystery, the old trick of deleting node_modules and re-installing works.

  1. Delete folder node_modules
  2. Run npm install

Consequently, in the server console I see this, a really good sign:

9:36:24 AM [vite] ✨ new dependencies optimized: vue-slider-component
9:36:24 AM [vite] ✨ optimized dependencies changed. reloading

And now browser is error free, slider works.

kalnode avatar Feb 14 '24 14:02 kalnode