小程序使用组件进行真机调试出现错误
VM1178:1 jsEnginScriptError
Component is not found in path "papes/cropper/cropper" (using by "pages/index/index")
Error: Component is not found in path "components/like/index" (using by "pages/classic/classic")
at e (http://127.0.0.1:30310/appservice/__dev__/WAService.js:1:541205)
at e (http://127.0.0.1:30310/appservice/__dev__/WAService.js:1:541391)
at $ (http://127.0.0.1:30310/appservice/__dev__/WAService.js:1:541533)
at Object.t.addView (http://127.0.0.1:30310/appservice/__dev__/WAService.js:1:542969)
at Function.value (http://127.0.0.1:30310/appservice/__dev__/WAService.js:1:606049)
at Ct (http://127.0.0.1:30310/appservice/__dev__/WAService.js:1:620199)
at Et (http://127.0.0.1:30310/appservice/__dev__/WAService.js:1:621887)
at Tt (http://127.0.0.1:30310/appservice/__dev__/WAService.js:1:623096)
at Function.<anonymous> (http://127.0.0.1:30310/appservice/__dev__/WAService.js:1:624000)
at dt.<anonymous> (http://127.0.0.1:30310/appservice/__dev__/WAService.js:1:592901)
解决方法:
在插件的.json文件中确保有以下内容:
{
"component": true,
"usingComponents": {}
}