When I used 'Swiper' in nuxt.js and installed 'vue-awesome-swiper', I copied the thumbnail code from the official website, But I kept getting an error 'Cannot read properties of undefined (reading 'controller')'. I changed the version as I found it, but it didn't solve the problem
"swiper": "^7.4.1",
"vue-awesome-swiper": "^3.1.3",
mounted() {
this.$nextTick(() => {
console.log(this.$refs.swiperTop.swiper);
console.log(this.$refs.swiperThumbs.swiper);
const swiperTop = this.$refs.swiperTop.$swiper;
const swiperThumbs = this.$refs.swiperThumbs.$swiper;
swiperTop.controller.control = swiperThumbs;
swiperThumbs.controller.control = swiperTop;
});
},