Agontuk / vue-cropperjs

A Vue wrapper component for cropperjs https://github.com/fengyuanchen/cropperjs
MIT License
932 stars 225 forks source link

_cropperjs2.default is not a constructor #104

Closed ednar28 closed 3 years ago

ednar28 commented 3 years ago

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>

image

Agontuk commented 3 years ago

Can you please check if cropperjs is installed and which version is installed ?

ednar28 commented 3 years ago

image I after checked the folder. I like playing with magic.

ty for your response and sorry create a new issue