出现这个错误

来源:4-2 Vant组件库

DeBugLIn

2019-05-15 16:17

thirdScriptError 

 sdk uncaught third Error 

 module "miniprogram_npm/vant-weapp/picker/shared" is not defined 

 Error: module "miniprogram_npm/vant-weapp/picker/shared" is not defined

    at require (http://127.0.0.1:53761/appservice/__dev__/WAService.js:22:26700)

    at http://127.0.0.1:53761/appservice/__dev__/WAService.js:22:26448

    at http://127.0.0.1:53761/appservice/miniprogram_npm/vant-weapp/area/index.js:7:15

    at require (http://127.0.0.1:53761/appservice/__dev__/WAService.js:22:26841)

    at <anonymous>:182:7

    at HTMLScriptElement.scriptLoaded (http://127.0.0.1:53761/appservice/appservice?t=1557908151826:4450:21)

    at HTMLScriptElement.script.onload (http://127.0.0.1:53761/appservice/appservice?t=1557908151826:4462:20)

console.error @ VM8816:1

(anonymous) @ WAService.js:14

(anonymous) @ WAService.js:6

e @ appservice?t=1557908151826:3959

window.onerror @ VM8816:1

scriptLoaded @ appservice?t=1557908151826:4450

script.onload @ appservice?t=1557908151826:4462


写回答 关注

2回答

  • 谢成
    2019-05-16 10:31:14

    应该是vant-weapp安装时候没安装好,手动删除miniprogram_npm文件夹,然后重新安装一下vant,应该就会好了。

  • qq_逐风之影_0
    2019-05-18 15:03:53

    把node_modules里的dist文件夹复制到miniprogram_npm的就好了

轻松入门微信小程序与云开发

深入浅出微信小程序核心基础与云开发,使你掌握小程序开发必备技能。

64548 学习 · 1742 问题

查看课程

相似问题