recently, I have been using mpvue framework to build Mini Program, and some carousel graphs are used on the page. WeChat Mini Programs"s swiper does not quite meet the requirements, so I want to introduce a third-party carousel graph plug-in.
slick.js this is based on jquery, and jquery doesn"t seem to work in WeChat Mini Programs.
now I"m going to use swiper.js without relying on jquery
install according to the website as follows:
npm install vue-awesome-swiper --save
import Vue from "vue"
import VueAwesomeSwiper from "vue-awesome-swiper"
WeChat Mini Programs console throw error:
VM7630:1 thirdScriptError
sdk uncaught third Error
Cannot read property "Swiper" of undefined
TypeError: Cannot read property" Swiper" of undefined
at Object.e (http://127.0.0.1:50955/appservice/static/js/vendor.js:14746:23)
at t (http://127.0.0.1:50955/appservice/static/js/vendor.js:14663:97)
at Object.defineProperty.value (http://127.0.0.1:50955/appservice/static/js/vendor.js:14701:71)
at t (http://127.0.0.1:50955/appservice/static/js/vendor.js:14663:97)
at Object.defineProperty.value (http://127.0.0.1:50955/appservice/static/js/vendor.js:14714:17)
at t (http://127.0.0.1:50955/appservice/static/js/vendor.js:14663:97)
at t.exports (http://127.0.0.1:50955/appservice/static/js/vendor.js:14676:23)
at http://127.0.0.1:50955/appservice/static/js/vendor.js:14677:8
at n (http://127.0.0.1:50955/appservice/static/js/vendor.js:14659:31)
at Object._ (http://127.0.0.1:50955/appservice/static/js/vendor.js:14660:6)
dei