老師,這是什么問題
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
2020-03-06
遇到了相同的問題,這樣寫就對了
"van-button": "/@vant/weapp/button/index"
2019-08-02
老師,不好意思,好了,剛才敲錯了
2019-08-02
老師,還是不行?。∵@是路徑的問題嗎?
2019-08-01
在movie.json文件中這樣引入組件試試:
"van-button": "/miniprogram_npm/vant-weapp/button/index"