Skip to content

Tag: vue.js

Class import produces undefined

I’m working on a Vue app and trying to build some helper classes: file a.js: file b.js: file c.js: When I import Middle it is undefined and giving me Uncaught TypeError: Super expression must either be null or a function on the line of extends Middle I’ve also tried Which should not make a differe…

How to use swiper breakpoints in Vue Js

Good morning, I’m making a site using VueJS for the frontend, I have installed SwiperJS via npm for Vue to make sliders. It works fine but i’m not able to make functioning breakpoints to have a responsive number of slides. I used this code to make a responsive post section that has all 4 posts sho…

THREE.js obj not loading in vue

I’m really confused about the way vue and THREE.js work together. I am using the exact same obj, once in a plain js environment – where it works perfectly fine – and once in vue.js, where the canvas stays empty and the dev console shows several warnings. The code I used in js is the exact sa…

How to download a vue file as pdf file in vuejs?

I have a vue as below which I want to download as PDF when I click on a button in main_component. Please help me find a way around to do so. download.vue main_file.vue Answer You can use the Javascript window.print document method and import your download.vue component into main_file.vue component and then pa…