问答详情
源自:4-2 Vant组件库

出现这个错误

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


提问者:DeBugLIn 2019-05-15 16:17

个回答

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

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

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

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