Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Super expression must either be null or a function #686

Open
baozai6795 opened this issue Aug 8, 2023 · 8 comments
Open

TypeError: Super expression must either be null or a function #686

baozai6795 opened this issue Aug 8, 2023 · 8 comments
Labels

Comments

@baozai6795
Copy link

vue 3

image

@baozai6795 baozai6795 added the bug label Aug 8, 2023
@baozai6795
Copy link
Author

ue-property-decorator vue3 Not Supported

@DraftProducts
Copy link

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

@NightCatSama
Copy link
Owner

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

@CaRniFeXeR
Copy link

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

@yanghoxom
Copy link

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

@DraftProducts
Copy link

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

@kalnode
Copy link

kalnode commented Feb 14, 2024

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
Copy link

kalnode commented Feb 14, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants