NightCatSama/vue-slider-component

TypeError: Super expression must either be null or a function

baozai6795 opened this issue · 8 comments

vue 3

image

ue-property-decorator vue3 Not Supported

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

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

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

@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?

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

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"

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.