laurenashpole / vue-inner-image-zoom

https://laurenashpole.github.io/vue-inner-image-zoom
140 stars 16 forks source link

"Object(...) is not a function" when using in Nuxt 2 #70

Closed adamboother closed 12 months ago

adamboother commented 12 months ago

I get the error "Object(...) is not a function" when using this in Nuxt 2, here's how I've implemented it:

<template>
        <inner-image-zoom
            src="/theimage" 
            zoomSrc="/theimage"
        />
</template>

<script>
import 'vue-inner-image-zoom/lib/vue-inner-image-zoom.css';
import InnerImageZoom from 'vue-inner-image-zoom';

export default {
    components: {
        'inner-image-zoom': InnerImageZoom
    }
};
</script>

Does this look correct?

adamboother commented 12 months ago

I reverted back to version 1.1.1 which has fixed this issue.