Closed Eboubaker closed 1 year ago
And warnings in npm console started showing
WARNING Compiled with 16 warnings 2:12:02 PM
warning in ./node_modules/vue-image-zoomer/dist/vue-image-zoomer.es.js
"export 'Fragment' was not found in 'vue'
warning in ./node_modules/vue-image-zoomer/dist/vue-image-zoomer.es.js
"export 'Transition' was not found in 'vue'
warning in ./node_modules/vue-image-zoomer/dist/vue-image-zoomer.es.js
"export 'createCommentVNode' was not found in 'vue'
warning in ./node_modules/vue-image-zoomer/dist/vue-image-zoomer.es.js
"export 'createElementBlock' was not found in 'vue'
warning in ./node_modules/vue-image-zoomer/dist/vue-image-zoomer.es.js
"export 'createElementVNode' was not found in 'vue'
warning in ./node_modules/vue-image-zoomer/dist/vue-image-zoomer.es.js
"export 'createVNode' was not found in 'vue'
warning in ./node_modules/vue-image-zoomer/dist/vue-image-zoomer.es.js
"export 'normalizeClass' was not found in 'vue'
warning in ./node_modules/vue-image-zoomer/dist/vue-image-zoomer.es.js
"export 'normalizeStyle' was not found in 'vue'
warning in ./node_modules/vue-image-zoomer/dist/vue-image-zoomer.es.js
"export 'openBlock' was not found in 'vue'
warning in ./node_modules/vue-image-zoomer/dist/vue-image-zoomer.es.js
"export 'renderList' was not found in 'vue'
warning in ./node_modules/vue-image-zoomer/dist/vue-image-zoomer.es.js
"export 'renderSlot' was not found in 'vue'
warning in ./node_modules/vue-image-zoomer/dist/vue-image-zoomer.es.js
"export 'resolveDirective' was not found in 'vue'
warning in ./node_modules/vue-image-zoomer/dist/vue-image-zoomer.es.js
"export 'vShow' was not found in 'vue'
warning in ./node_modules/vue-image-zoomer/dist/vue-image-zoomer.es.js
"export 'withCtx' was not found in 'vue'
warning in ./node_modules/vue-image-zoomer/dist/vue-image-zoomer.es.js
"export 'withDirectives' was not found in 'vue'
warning in ./node_modules/vue-image-zoomer/dist/vue-image-zoomer.es.js
"export 'withModifiers' was not found in 'vue'
You're using Vue3 version with Vue2
See legacy version here https://www.npmjs.com/package/vue-image-zoomer/v/1.5.0
Ah I see, I did a workaround by shamelessly stealing the code of VueImageZoomer.vue and put it in my src with small tweaks
@Eboubaker its open source :) but the 1.5.0 version should work for you, I still maintain the Vue 2 version when I do updates. Got some coming soon
Ok, that's nice of you, one suggestion though is to put a note in your readme after the npm install
command to add the alternative vue2 version. because I followed the npm page readme and there is no mention of version difference there.
@Eboubaker
It's in the first paragraph, but I should make it make more sense :) but that's a good idea too.
Yes I Didn't see it till I started editing README.md .., you know us web developers don't like to read and go straight looking for npm install xxx commands