Closed aesyondu closed 3 years ago
Found it https://stackoverflow.com/a/63210803:
Update 1.1.4 uses rollup-plugin-vue@6.0.0. This should probably be mentioned somewhere in the docs.
Solution:
npm install vue-panzoom@1.1.3
Can confirm that on 1.1.6 it is still not solved. npm install vue-panzoom@1.1.3
was solution for me as well.
Has anyone figured out how to use this with nuxt?
I keep getting `Object(...) is not a function`:
```javascript client.js?06a0:97 TypeError: Object(...) is not a function at Proxy.render (vue-panzoom.esm.js?2d7e:107) at VueComponent.Vue._render (vue.runtime.esm.js?2b0e:3548) at VueComponent.updateComponent (vue.runtime.esm.js?2b0e:4055) at Watcher.get (vue.runtime.esm.js?2b0e:4479) at new Watcher (vue.runtime.esm.js?2b0e:4468) at mountComponent (vue.runtime.esm.js?2b0e:4073) at VueComponent.Vue.$mount (vue.runtime.esm.js?2b0e:8415) at init (vue.runtime.esm.js?2b0e:3118) at createComponent (vue.runtime.esm.js?2b0e:5978) at createElm (vue.runtime.esm.js?2b0e:5925) TypeError: this.$el.querySelector is not a function at VueComponent.scene (vue-panzoom.esm.js?2d7e:38) at Watcher.get (vue.runtime.esm.js?2b0e:4479) at Watcher.evaluate (vue.runtime.esm.js?2b0e:4584) at VueComponent.computedGetter [as scene] (vue.runtime.esm.js?2b0e:4836) at VueComponent.mounted (vue-panzoom.esm.js?2d7e:28) at invokeWithErrorHandling (vue.runtime.esm.js?2b0e:1854) at callHook (vue.runtime.esm.js?2b0e:4219) at Object.insert (vue.runtime.esm.js?2b0e:3139) at invokeInsertHook (vue.runtime.esm.js?2b0e:6346) at VueComponent.patch [as __patch__] (vue.runtime.esm.js?2b0e:6565) ```My setup:
I also tried the basic example in the readme, but it has the same error:
vue-panzoom@1.1.4 nuxt@2.15.4 node@14.15.1
EDIT: Webpack also shows this error, not sure what it means yet: