NightCatSama / vue-slider-component

🌡 A highly customized slider component
https://nightcatsama.github.io/vue-slider-component
MIT License
2.39k stars 341 forks source link

Super expression must either be null or a function #658

Open 986823307 opened 1 year ago

986823307 commented 1 year ago

Describe the bug

vue3使用组件出现异常,不同版本都试过了全部不行

Additional context (If there is no relevant content, please delete the block)

image

Environment (If you feel unrelated, please delete the block)

NightCatSama commented 1 year ago

最新的 4.1.0-beta.5 也会么,里面应该都没 vue-property-decorator 依赖了。

986823307 commented 1 year ago

最新的 4.1.0-beta.5 也会么,里面应该都没 vue-property-decorator 依赖了。

不行,我把4.x的所有版本都安装,每个试了一遍不行

cmtran09 commented 1 year ago

are you using this on vue 3. "npm i vue-slider-component" causes this issue because it installs an incompatible version (Vue 2 version of this package to a Vue 3 environment). The following line installs the Correct vue-slider-compoenent for a Vue 3 environment: npm install vue-slider-component@next --save

986823307 commented 1 year ago

are you using this on vue 3. "npm i vue-slider-component" causes this issue because it installs an incompatible version (Vue 2 version of this package to a Vue 3 environment). The following line installs the Correct vue-slider-compoenent for a Vue 3 environment: npm install vue-slider-component@next --save

Ok, I'll try again

Zhu-Aemon commented 1 year ago

I still get this error with vue3.2.47. I installed the package using npm install vue-slider-component@next --save. I have tried using install npm install vue-slider-component@latest --save. It is not working either.

Meyrueis commented 1 year ago

I'm using Vite and i've fix this problem following this issue : https://github.com/NightCatSama/vue-slider-component/issues/642

export default defineConfig({ build: { commonjsOptions: { requireReturnsDefault: true } }, // ... })

Good luck !