taro-ui icon indicating copy to clipboard operation
taro-ui copied to clipboard

TypeError: Cannot read property 'BarCodeType' of undefined, js engine: hermes

Open hooliy opened this issue 1 year ago • 5 comments

image

  • Taro 版本 [e.g. v.3.6.11]
  • Taro UI 版本 [e.g. v.3.1.0-beta.7]
  • 报错平台 [rn]

hooliy avatar Aug 01 '23 02:08 hooliy

欢迎提交 Issue~

如果你提交的是 bug 报告,请务必遵循 Issue 模板的规范,尽量用简洁的语言描述你的问题,最好能提供一个稳定简单的复现。🙏🙏🙏

如果你的信息提供过于模糊或不足,或者已经其他 issue 已经存在相关内容,你的 issue 有可能会被关闭。

Good luck and happy coding~

taro-ui-bot[bot] avatar Aug 01 '23 02:08 taro-ui-bot[bot]

Taro-UI 中没有 BarCodeType 的相关内容,可以提供下报错的源码

robinv8 avatar Aug 01 '23 14:08 robinv8

Taro-UI 中没有 BarCodeType 的相关内容,可以提供下报错的源码

直接用最新版的taro初始化一个空项目,安装最新版的taro-ui,随便引入一个组件,Taro Playground 下调试一下就能看到错误了 @robinv8

hooliy avatar Aug 01 '23 14:08 hooliy

参考demo https://github.com/zhiqingchen/taro-test/tree/taro-ui-3.1.0-beta.7

注意几个问题 https://github.com/NervJS/taro-ui/issues/1424#issuecomment-1041320614

模板初始化还需要执行 yarn upgradePeerdeps https://docs.taro.zone/docs/react-native#%E9%9B%86%E6%88%90%E6%A8%A1%E5%BC%8F

zhiqingchen avatar Aug 15 '23 09:08 zhiqingchen

taro 3.6.20 taro-ui3.22 也有这个问题 找到解决办法了吗

Hao-yiwen avatar Jan 09 '24 06:01 Hao-yiwen