Closed dakshshah96 closed 3 years ago
I've just been using this package and you can fix importing the correct module.
<template>
<!-- just an example -->
<vue-croppie-component ref="croppieRef"></vue-croppie>
</template>
<script>
import {VueCroppieComponent} from 'vue-croppie'
import 'croppie/croppie.css'
export default {
name: 'MyComponent',
components: { VueCroppieComponent },
}
</script>
Hope this helps :)
@syther101 I feel dumb now. LOL. Thanks!
Can I register the
VueCroppie
component locally instead of in my main.js file?When I try to do the following:
I always get this error:
Putting
VueCroppie
in main.js and doingVue.use(VueCroppie)
works as expected but I'd rather lazy load this library only on the page where I need it.