微信小程序tabbar报错Component is not found in path “custom-tab-bar/index“
Posted 征途黯然.
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了微信小程序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。
以上是关于微信小程序tabbar报错Component is not found in path “custom-tab-bar/index“的主要内容,如果未能解决你的问题,请参考以下文章
(uniapp和)微信小程序页面跳转首页报错:navigateTo:fail can not navigateTo a tabbar page
急!急!微信小程序报错:TypeError: fetch is not a function
微信小程序项目打开突然报错__wxConfig is not defined?
微信小程序 Component is not found in path “miniprogram_npm/weui-miniprogram“