您好,登錄后才能下訂單哦!
導入執行后
VM292:1 thirdScriptError
sdk uncaught third Error
module "miniprogram_npm/vant-weapp/mixins/transition" is not defined
Error: module "miniprogram_npm/vant-weapp/mixins/transition" is not defined
at require (http://127.0.0.1:56368/appservice/__dev__/WAService.js:22:26700)
at http://127.0.0.1:56368/appservice/__dev__/WAService.js:22:26448
at http://127.0.0.1:56368/appservice/miniprogram_npm/vant-weapp/popup/index.js:5:19
at require (http://127.0.0.1:56368/appservice/__dev__/WAService.js:22:26841)
at <anonymous>:395:7
at HTMLScriptElement.scriptLoaded (http://127.0.0.1:56368/appservice/appservice?t=1557802464868:4544:21)
at HTMLScriptElement.script.onload (http://127.0.0.1:56368/appservice/appservice?t=1557802464868:4556:20)
解決方法:
你只需要把miniprogram_npm/vant-weapp里的組件文件夾都刪除,
之后再https://github.com/youzan/vant-weapp下載一份vant, 將dist文件夾(vant-weapp-dev\vant-weapp-dev\dist)中的文件復制到項目的miniprogram_npm/vant-weapp
即下載一份vant,之后替換掉項目中的文件
之后保存解決
微信小程序導入Vant組件包的文章鏈接:https://www.jb51.net/article/166770.htm
總結
以上就是這篇文章的全部內容了,希望本文的內容對大家的學習或者工作具有一定的參考學習價值,謝謝大家對億速云的支持。
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。