3.6.1,preact,taroui,Atinput TypeError: Cannot assign to read only property 'focus' of object '#<t>'
相关平台
H5
浏览器版本: edge 使用框架: React
复现步骤
taro init test preact taroui dev:h5
期望结果
正常
实际结果
报错 TypeError: Cannot assign to read only property 'focus' of object '#
环境信息
Taro v3.6.1
Taro CLI 3.6.1 environment info:
System:
OS: Linux 5.10 Debian GNU/Linux 11 (bullseye) 11 (bullseye)
Shell: 5.1.4 - /bin/bash
Binaries:
Node: 16.13.1 - ~/.nvm/versions/node/v16.13.1/bin/node
npm: 8.1.2 - ~/.nvm/versions/node/v16.13.1/bin/npm
npmPackages:
@tarojs/cli: 3.6.1 => 3.6.1
@tarojs/components: 3.6.1 => 3.6.1
@tarojs/helper: 3.6.1 => 3.6.1
@tarojs/plugin-framework-react: 3.6.1 => 3.6.1
@tarojs/plugin-platform-alipay: 3.6.1 => 3.6.1
@tarojs/plugin-platform-h5: 3.6.1 => 3.6.1
@tarojs/plugin-platform-jd: 3.6.1 => 3.6.1
@tarojs/plugin-platform-qq: 3.6.1 => 3.6.1
@tarojs/plugin-platform-swan: 3.6.1 => 3.6.1
@tarojs/plugin-platform-tt: 3.6.1 => 3.6.1
@tarojs/plugin-platform-weapp: 3.6.1 => 3.6.1
@tarojs/runtime: 3.6.1 => 3.6.1
@tarojs/shared: 3.6.1 => 3.6.1
@tarojs/taro: 3.6.1 => 3.6.1
@tarojs/webpack5-runner: 3.6.1 => 3.6.1
babel-preset-taro: 3.6.1 => 3.6.1
eslint-config-taro: 3.6.1 => 3.6.1
taro-ui: ^3.1.0-beta.2 => 3.1.0-beta.4
AtInput 组件
同样出现该问题,打包H5 input 组件无法使用 focus,小程序正常,H5的node节点 focus 是函数,现在赋的是布尔值
这应该是 taro-ui 的问题,将转到对应仓库
欢迎提交 Issue~
如果你提交的是 bug 报告,请务必遵循 Issue 模板的规范,尽量用简洁的语言描述你的问题,最好能提供一个稳定简单的复现。🙏🙏🙏
如果你的信息提供过于模糊或不足,或者已经其他 issue 已经存在相关内容,你的 issue 有可能会被关闭。
Good luck and happy coding~
同样遇到此问题
taroui还有更新吗,-- 影响不能继续使用了
救命啊,我跑dev:h5 也报同样的错误。