Closed ganyanchuan1989 closed 1 year ago
补充信息,以下是创建taro-demo-3.6.2工程的选项配置:
Taro 即将创建一个新项目!
Need help? Go and open issue: https://tls.jd.com/taro-issue-helper
? 请输入项目介绍 taro demo
? 请选择框架 React
? 是否需要使用 TypeScript ? No
? 请选择 CSS 预处理器(Sass/Less/Stylus) Sass
? 请选择编译工具 Webpack5
? 请选择包管理工具 npm
? 请选择模板源 Github(最新)
√ 拉取远程模板仓库成功!
? 请选择模板 默认模板
在没有引入taro-ui组件的时候,项目是正常的。引入taro-ui组件后,启动后打开页面就报错。
问题解决,应该是组件库问题。使用:"taro-ui": "^3.1.0-beta.4"
,之后好了。
ok
@ZakaryCode 3.1.0-beta.4 版本啥时候发布正式版哈,现在正式版本是2.x , 新版的3.x 会有很大变化吗?
<Input focus/>
或者
<AtInput/>
依旧报错,最终将taro版本降低到 3.5.12 ,重新创建项目解决。
相关平台
H5
复现仓库
https://github.com/ganyanchuan1989/taro-demo-3.6.2.git 浏览器版本: chrome 109.0.5414.120(64 bit) 使用框架: React
复现步骤
期望结果
正常显示AtButton
实际结果
Error TypeError: Class extends value undefined is not a constructor or null
环境信息