_cropperjs2.default is not a constructor
ednar28 opened this issue · 2 comments
ednar28 commented
I'm using vite 2.1.2 and vue 3.0.5
<template>
<vue-cropper
ref="cropper"
drag-mode="move"
:center="true"
:crop-box-movable="false"
:crop-box-resizable="false"
:min-container-height="80"
:src="imageUrl"
:aspect-ratio="16 / 9"
:auto-crop-area="100"
:modal="false"
:guides="false"
alt="Source Image"
@ready="ready"/>
</template>
<script>
import VueCropper from 'vue-cropperjs'
import 'cropperjs/dist/cropper.css'
export default {
components: {
VueCropper,
},
}
</script>
Agontuk commented
Can you please check if cropperjs is installed and which version is installed ?
ednar28 commented