palerdot / vue-speedometer

Vue component library for showing speedometer like gauge using d3
https://palerdot.in/vue-speedometer
MIT License
60 stars 8 forks source link

Quasar v2 framework this.querySelector is not a function #67

Closed rizky2341 closed 1 year ago

rizky2341 commented 1 year ago

hi i have a problem when using the library with quasar framework v2. when i read closed issue, where i suppose to add this code ? module.exports = { runtimeCompiler: true, }; much appreciate :) image

palerdot commented 1 year ago

runtimeCompiler: true is a vue specific config and I'm not sure if it really applies to Vue 3. You have to check your quasar framework/vue version documentation. I cannot help you here.

rizky2341 commented 1 year ago

hi, i found how to make it work, in case there's someone have same issues u need to enable this in your quasar.config.js. extendViteConf(viteConf) { viteConf.resolve.alias.vue = "vue/dist/vue.esm-bundler.js"; }, add this piece of line inside build: {};

palerdot commented 11 months ago

Possible solution: https://github.com/vitejs/vite/discussions/4158

palerdot commented 8 months ago

v3 is published with composition api/SFC (single file component) support. This is the recommended version for Vue 3 composition api users.