vue-slider-component
vue-slider-component copied to clipboard
Super expression must either be null or a function
Describe the bug
vue3使用组件出现异常,不同版本都试过了全部不行
Additional context (If there is no relevant content, please delete the block)
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]
最新的 4.1.0-beta.5 也会么,里面应该都没 vue-property-decorator 依赖了。
最新的 4.1.0-beta.5 也会么,里面应该都没 vue-property-decorator 依赖了。
不行,我把4.x的所有版本都安装,每个试了一遍不行
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
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
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.
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 !
我也遇到这个错误了,我一开始也是用的“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 installnpm install vue-slider-component@latest --save
. It is not working either.