微信小程序引入组件真机调试出错:VM1198:2 Component is not found in path "components/swiper/swiper" (using by "pages/home/index")
单独写了组件,结果运行没有问题,真机测试一直出现找不到组件的问题。
组件的json文件里面,一定要加 “component”: true,
{ "navigationBarTitleText": "导航栏组件", "component": true, "usingComponents": {} }