NightCatSama/vue-slider-component

[vue3.x] Super expression must either be null or a function

TuMkoO opened this issue · 9 comments

Try Local include and get this error

vue-slider-component.umd.min.js?4971:6 Uncaught TypeError: Super expression must either be null or a function
at k (vue-slider-component.umd.min.js?4971:6:1)
at eval (vue-slider-component.umd.min.js?4971:6:1)
at eval (vue-slider-component.umd.min.js?4971:6:1)
at Module.fb15 (vue-slider-component.umd.min.js?4971:6:1)
at r (vue-slider-component.umd.min.js?4971:1:1)
at 091b (vue-slider-component.umd.min.js?4971:1:1)
at eval (vue-slider-component.umd.min.js?4971:1:1)
at eval (vue-slider-component.umd.min.js?4971:1:1)
at eval (vue-slider-component.umd.min.js?4971:1:1)
at Object../node_modules/vue-slider-component/dist/vue-slider-component.umd.min.js (chunk-vendors.js:10871:1)

  • OS & Version: [Windows]
  • Vue version: [e.g. v3.0.0]
  • "vue-slider-component": "^3.2.15",

I also have the same problem in v.3.2.15

  • OS: MacOS
  • vue: v3.2.29
  • vite: v2.7.13
  • vue-slider-component: v3.2.15

Same here.

Same

Did anyone found a solution or workaround

i have simular error but as global install and only in staging/production, not in dev environment.
however using the beta version fixes this for me.
add "vue-slider-component": "^4.0.0-beta.5" to package.json

Worked for me using non-minified umd import on 3.2.15:

import VueSlider from 'vue-slider-component/dist-css/vue-slider-component.umd.js';

dont work
image

Facing this issue too :(

UPDATE: Just found https://github.com/vueform/slider#using-with-vue-3 which is up to date, and has similar syntax. Took me minutes to migrate

fixed in 4.0.0-beta.8