本文主要是介绍微信小程序导入Vant报错VM292:1 thirdScriptError sdk uncaught third Error module miniprogram_npm/vant-weap,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
导入执行后
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 definedat 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:26448at http://127.0.0.1:56368/appservice/miniprogram_npm/vant-weapp/popup/index.js:5:19at require (http://127.0.0.1:56368/appservice/__dev__/WAService.js:22:26841)at <anonymous>:395:7at 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://blog.csdn.net/qq_38845493/article/details/90203128
这篇关于微信小程序导入Vant报错VM292:1 thirdScriptError sdk uncaught third Error module miniprogram_npm/vant-weap的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!