taro
taro copied to clipboard
[Bug]: taro vite react 创建项目中,无法自定义微信小程的tabbar,打包后dist文件下没有custom-tab-bar文件夹
请先确认
- [x] 我已搜索并确定这个提交不是重复的
相关平台
- [ ] 所有小程序
- [x] 微信小程序
- [ ] 支付宝小程序
- [ ] 百度小程序
- [ ] 字节跳动小程序
- [ ] QQ 轻应用
- [ ] 京东小程序
- [ ] 快应用平台(QuickApp)
- [ ] Web 平台(H5)
- [ ] 移动端(React-Native)
- [ ] 鸿蒙(harmony)
小程序基础库版本
3.8.9
使用框架
React
问题描述
taro vite react 创建项目中,无法自定义微信小程的tabbar,打包后dist文件下没有custom-tab-bar文件夹
复现链接
无
复现步骤
npx @tarojs/cli init myApp
环境信息
👽 Taro v4.1.3
Taro CLI 4.1.3 environment info:
System:
OS: Windows 10 10.0.19045
Binaries:
Node: 22.17.0 - D:\nvm\nodejs\node.EXE
Yarn: 1.22.22 - D:\nvm\nodejs\yarn.CMD
npm: 10.9.2 - D:\nvm\nodejs\npm.CMD
npmPackages:
@tarojs/cli: 4.1.3 => 4.1.3
@tarojs/components: 4.1.3 => 4.1.3
@tarojs/helper: 4.1.3 => 4.1.3
@tarojs/plugin-framework-react: 4.1.3 => 4.1.3
@tarojs/plugin-platform-alipay: 4.1.3 => 4.1.3
@tarojs/plugin-platform-h5: 4.1.3 => 4.1.3
@tarojs/plugin-platform-harmony-hybrid: 4.1.3 => 4.1.3
@tarojs/plugin-platform-jd: 4.1.3 => 4.1.3
@tarojs/plugin-platform-qq: 4.1.3 => 4.1.3
@tarojs/plugin-platform-swan: 4.1.3 => 4.1.3
@tarojs/plugin-platform-tt: 4.1.3 => 4.1.3
@tarojs/plugin-platform-weapp: 4.1.3 => 4.1.3
@tarojs/react: 4.1.3 => 4.1.3
@tarojs/runtime: 4.1.3 => 4.1.3
@tarojs/shared: 4.1.3 => 4.1.3
@tarojs/taro: 4.1.3 => 4.1.3
@tarojs/vite-runner: 4.1.3 => 4.1.3
babel-preset-taro: 4.1.3 => 4.1.3
eslint-config-taro: 4.1.3 => 4.
贡献代码
- [ ] 我愿意修复这个错误
这个能不能加急处理下啊,很急
我也碰到这个问题,这属于很基础的东西呀。
看了多个地方 原来是兼容性的问题,我用v4也有这个问题
搞了一下午..., 原来是兼容问题
可以先修改config/index.ts文件,添加copy属性 参考文档:https://docs.taro.zone/docs/config-detail#copy
copy: {
patterns: [
{
from: 'src/custom-tab-bar',
to: 'custom-tab-bar'
}
],
options: {
}
},
@hello-chinese 这个是拷贝源码?如何让 src/custom-tab-bar 参与构建,然后拷贝产物