NervJS / taro-ui

一款基于 Taro 框架开发的多端 UI 组件库
https://taro-ui.taro.zone
MIT License
4.52k stars 756 forks source link

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

Open hooliy opened 1 year ago

hooliy commented 1 year ago
image
taro-ui-bot[bot] commented 1 year ago

欢迎提交 Issue~

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

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

Good luck and happy coding~

robinv8 commented 1 year ago

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

hooliy commented 1 year ago

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

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

zhiqingchen commented 1 year ago

参考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

Hao-yiwen commented 8 months ago

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