为了账号安全,请及时绑定邮箱和手机立即绑定

老师,这是什么问题

jsEnginScriptError

Component is not found in path "pages/movie/vant-weapp/button" (using by "pages/movie/movie")

Error: Component is not found in path "pages/movie/vant-weapp/button" (using by "pages/movie/movie")

    at e (http://127.0.0.1:51245/appservice/__dev__/WAService.js:17:5779)

    at e (http://127.0.0.1:51245/appservice/__dev__/WAService.js:17:5965)

    at le (http://127.0.0.1:51245/appservice/__dev__/WAService.js:17:16366)

    at Object.i.addView (http://127.0.0.1:51245/appservice/__dev__/WAService.js:17:17734)

    at Function.value (http://127.0.0.1:51245/appservice/__dev__/WAService.js:19:15869)

    at $t (http://127.0.0.1:51245/appservice/__dev__/WAService.js:19:29701)

    at on (http://127.0.0.1:51245/appservice/__dev__/WAService.js:20:235)

    at sn (http://127.0.0.1:51245/appservice/__dev__/WAService.js:20:573)

    at Function.<anonymous> (http://127.0.0.1:51245/appservice/__dev__/WAService.js:20:3006)

    at L.<anonymous> (http://127.0.0.1:51245/appservice/__dev__/WAService.js:19:1500)

console.error @ VM1494:1

errorReport @ VM1510 WAService.js:4

(anonymous) @ VM1510 WAService.js:4

M @ VM1510 WAService.js:19

(anonymous) @ VM1510 WAService.js:19

L.emit @ VM1510 WAService.js:8

emit @ VM1510 WAService.js:6

(anonymous) @ VM1510 WAService.js:9

(anonymous) @ VM1510 WAService.js:6

n @ VM1508 asdebug.js:1

(anonymous) @ VM1508 asdebug.js:1

(anonymous) @ VM1508 asdebug.js:1

_ws.onmessage @ VM1508 asdebug.js:1



正在回答

4 回答

遇到了相同的问题,这样写就对了

"van-button": "/@vant/weapp/button/index"

1 回复 有任何疑惑可以回复我~

老师,不好意思,好了,刚才敲错了

1 回复 有任何疑惑可以回复我~

老师,还是不行啊!这是路径的问题吗?

0 回复 有任何疑惑可以回复我~
#1

沐慕穆

请问一下,你这个问题解决了吗,能说一下怎么解决的吗
2019-09-29 回复 有任何疑惑可以回复我~

在movie.json文件中这样引入组件试试:

"van-button": "/miniprogram_npm/vant-weapp/button/index"


0 回复 有任何疑惑可以回复我~
#1

全小鑫

老师,按照这个路径也不对,还是报错
2019-08-12 回复 有任何疑惑可以回复我~
#2

沐慕穆 回复 全小鑫

请问一下你这个问题解决了吗,请教一下怎么解决的,同样碰到了这个问题
2019-09-29 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

老师,这是什么问题

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信