这篇文章主要给大家介绍了关于微信小程序导入Vant报错VM292:1 thirdScriptError的解决方法,文中通过示例代码介绍的非常详细,对大家学习或者使用微信小程序具有一定的参考学习价值,需要的朋友们下面来一起学习学习吧
导入执行后
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 (:56368/appservice/__dev__/WAService.js:22:26700)
at :56368/appservice/__dev__/WAService.js:22:26448
at :56368/appservice/miniprogram_npm/vant-weapp/popup/index.js:5:19
at require (:56368/appservice/__dev__/WAService.js:22:26841)
at <anonymous>:395:7
at HTMLScriptElement.scriptLoaded (:56368/appservice/appservice?t=1557802464868:4544:21)
at HTMLScriptElement.script.onload (: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
总结
以上就是这篇文章的全部内容了,希望本文的内容对大家的学习或者工作具有一定的参考学习价值,谢谢大家对脚本之家的支持。
您可能感兴趣的文章: