0👍
✅
Solved this problem myself by moving the object instantiation inside the mounted property.
export default {
name: "Employees",
mounted: function() {
let mySwiper = new Swiper('.swiper-container', {
direction: "horizontal",
loop: false,
spaceBetween: 50,
effect: "slide"
})
}
}
Source:stackexchange.com