【微信小程序】tabbar报错Component is not found in path “custom-tab-bar/index“

简介: 【微信小程序】tabbar报错Component is not found in path “custom-tab-bar/index“
+关注继续查看

问题描述


  在app.json配置好tabBar,发现页面毫无变化,甚至还报错了Component is not found in path "custom-tab-bar/index"。配置是从微信小程序官网复制的,如下:

 "tabBar": {
    "custom": true,
    "color": "#0000ff",
    "selectedColor": "#00ff00",
    "backgroundColor": "#0000ff",
    "list": [{
      "pagePath": "pages/index/index",
      "text": "组件",
      "iconPath": "/images/index.png",
      "selectedIconPath": "/images/index_selected.png"
    }, {
      "pagePath": "pages/logs/logs",
      "text": "接口"
    }]
  },
  "usingComponents": {}

解决办法


  把"custom": true删除。

问题原理分析


  "custom": true表示的是自定义tabbar。

相关文章
|
27天前
|
小程序
微信小程序系列——正确使用tabBar
微信小程序系列——正确使用tabBar
|
1月前
|
小程序
微信小程序-页面跳转Tabbar
首先我们需要搭建一个 Tabbar,在搭建之前我们将需要跳转的页面创建一下待会需要使用到。
20 0
|
1月前
|
小程序 JavaScript
微信小程序 - 监听 TabBar 切换点击事件
微信小程序 - 监听 TabBar 切换点击事件
379 0
|
3月前
|
小程序
原生微信小程序跳转传参 : [非TabBar跳转传参] 和 [TabBar跳转传参]
原生微信小程序跳转传参 : [非TabBar跳转传参] 和 [TabBar跳转传参]
46 0
|
4月前
|
JSON 小程序 JavaScript
微信小程序自定义tabbar【中间凸起样式
微信小程序自定义tabbar【中间凸起样式
372 0
|
7月前
|
小程序 算法 Go
Golang微信小程序数据解密报错:invalid character “‘p‘“ looking for beginning of value
Golang微信小程序数据解密报错:invalid character “‘p‘“ looking for beginning of value
222 0
|
8月前
|
移动开发 小程序
uniapp自定义tabbar,中间凸起(支持H5、微信小程序)
uniapp自定义tabbar,中间凸起(支持H5、微信小程序)
uniapp自定义tabbar,中间凸起(支持H5、微信小程序)
|
11月前
|
编解码 JSON 小程序
微信小程序将字符串转码为json的时候一直报错,在微信小程序json对象和字符串的转换
微信小程序将字符串转码为json的时候一直报错,在微信小程序json对象和字符串的转换
444 0
|
11月前
|
小程序
【微信小程序】全局配置 - tabBar
全局配置 - tabBar 1. 什么是 tabBar 2. tabBar 的 6 个组成部分 3. tabBar 节点的配置项 4. 每个 tab 项的配置选项 全局配置 - 案例:配置 tabBar 1. 需求描述 2. 实现步骤 3. 步骤1 - 拷贝图标资源 4.步骤2 - 新建 3 个对应的 tab 页面 5. 步骤3 - 配置 tabBar 选项 6. 完整的配置代码
【微信小程序】全局配置 - tabBar
|
11月前
|
小程序 JavaScript
【微信小程序】页面tabBar切换、下拉刷新
通过以下方法是页面tabBar切换、下拉刷新。
527 0
【微信小程序】页面tabBar切换、下拉刷新
推荐文章
更多