vue-cropper使用报错 Cannot read properties of undefined (reading ‘_c‘)

报错信息:

universalModuleDefinition:1 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading '_c') 
 	at Proxy.n (universalModuleDefinition:1:1)
    at renderComponentRoot (runtime-core.esm-bundler.js:896:44)
    at ReactiveEffect.componentUpdateFn [as fn] (runtime-core.esm-bundler.js:5580:57)
    at ReactiveEffect.run (reactivity.esm-bundler.js:185:25)
    at instance.update (runtime-core.esm-bundler.js:5694:56)
    at setupRenderEffect (runtime-core.esm-bundler.js:5708:9)
    at mountComponent (runtime-core.esm-bundler.js:5490:9)
    at processComponent (runtime-core.esm-bundler.js:5448:17)
    at patch (runtime-core.esm-bundler.js:5038:21)
    at mountChildren (runtime-core.esm-bundler.js:5234:13)

vue3解决办法:

//重新安装vue-cropper
npm install vue-cropper@next ,
//引入方式:
import { VueCropper } from "vue-cropper";
import 'vue-cropper/dist/index.css';

vue2解决办法:

//安装vue-cropper(0.6.2及以下版本):
npm install vue-cropper,
//引入方式:
import VueCropper from "vue-cropper/src/vue-cropper.vue"

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值