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

Super expression must either be null or a function

Open 986823307 opened this issue 2 years ago • 7 comments

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)

  • OS & Version: [e.g. Windows]
  • Vue version: [e.g. v3.2.41]
  • Vite version [e.g. v3.2.2]
  • Component Version: [e.g. v4.x]

986823307 avatar Nov 02 '22 09:11 986823307

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

NightCatSama avatar Nov 02 '22 09:11 NightCatSama

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

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

986823307 avatar Nov 04 '22 03:11 986823307

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

cmtran09 avatar Nov 16 '22 12:11 cmtran09

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

986823307 avatar Nov 19 '22 03:11 986823307

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.

Zhu-Aemon avatar Apr 17 '23 15:04 Zhu-Aemon

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 !

Meyrueis avatar Jun 14 '23 10:06 Meyrueis

我也遇到这个错误了,我一开始也是用的“npm i vue-slider-component”,新建一个项目再使用“npm install vue-slider-component@next --save”就可以了,一开始的项目依赖没删干净

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.

Genshinpp avatar Aug 07 '24 04:08 Genshinpp