报错信息:
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"