小程序中使用MpVue框架+VantUI,编译正常但是小程序开发工具中展示时报错

小程序中使用MpVue框架+VantUI,编译正常但是小程序开发工具中展示时报错

解决办法:小程序开发工具中ES6转Ess

app created and cache logs by setStorageSync
VM2607:1 thirdScriptError
 sdk uncaught third Error
 module "static/vant/checkbox/index.js" is not defined
 Error: module "static/vant/checkbox/index.js" is not defined
    at require (http://127.0.0.1:57228/appservice/__dev__/WAService.js:23:13423)
    at <anonymous>:19:7
    at HTMLScriptElement.scriptLoaded (http://127.0.0.1:57228/appservice/appservice?t=1539393805781:6239:23)
console.error @ VM2607:1
(anonymous) @ WAService.js:15
(anonymous) @ WAService.js:6
e @ appservice?t=1539393805781:5622
window.onerror @ VM2607:1
scriptLoaded @ appservice?t=1539393805781:6239
VM2607:1 jsEnginScriptError
Component is not found in path "static/iview/button/index" (using by "pages/index/main")
Error: Component is not found in path "static/iview/button/index" (using by "pages/index/main")
    at e (http://127.0.0.1:57228/appservice/__dev__/WAService.js:17:21420)
    at e (http://127.0.0.1:57228/appservice/__dev__/WAService.js:17:21606)
    at le (http://127.0.0.1:57228/appservice/__dev__/WAService.js:18:20)
    at Object.i.addView (http://127.0.0.1:57228/appservice/__dev__/WAService.js:18:1388)
    at Function.value (http://127.0.0.1:57228/appservice/__dev__/WAService.js:20:311)
    at Xt (http://127.0.0.1:57228/appservice/__dev__/WAService.js:20:14678)
    at sn (http://127.0.0.1:57228/appservice/__dev__/WAService.js:20:17267)
    at un (http://127.0.0.1:57228/appservice/__dev__/WAService.js:20:17605)
    at Function.<anonymous> (http://127.0.0.1:57228/appservice/__dev__/WAService.js:20:20038)
    at L.<anonymous> (http://127.0.0.1:57228/appservice/__dev__/WAService.js:19:18211)

评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值