世界那么好,机会那么多

这里除了干货,什么都没有

微信小程序引入组件真机调试出错:VM1198:2 Component is not found in path "components/swiper/swiper" (using by "pages/home/index")

单独写了组件,结果运行没有问题,真机测试一直出现找不到组件的问题。

组件的json文件里面,一定要加 “component”: true,

{
  "navigationBarTitleText": "导航栏组件",
  "component": true,
  "usingComponents": {}
}

 

posted @ 2021-10-02 16:53  面向对象爱好者社区  阅读(688)  评论(0编辑  收藏  举报