Open gonganruyi opened 12 hours ago
H5
浏览器版本: android 7 使用框架: React
H5在android 7中的webview中打开会白屏,报错信息 Uncaught TypeError: Object.entries is not a function
正常
错误
Taro CLI 3.6.6 environment info: System: OS: macOS 14.3.1 Shell: 5.9 - /bin/zsh Binaries: Node: 16.20.2 - /var/folders/w_/dv1z2gzx2d77cwm8mzdpd_s80000gn/T/yarn--1726735972922-0.026032696463100136/node Yarn: 1.22.21 - /var/folders/w_/dv1z2gzx2d77cwm8mzdpd_s80000gn/T/yarn--1726735972922-0.026032696463100136/yarn npm: 8.19.4 - /usr/local/bin/npm npmPackages: @tarojs/cli: 3.6.6 => 3.6.6 @tarojs/components: 3.6.6 => 3.6.6 @tarojs/helper: 3.6.6 => 3.6.6 @tarojs/plugin-framework-react: 3.6.6 => 3.6.6 @tarojs/plugin-html: 3.6.6 => 3.6.6 @tarojs/plugin-platform-alipay: 3.6.6 => 3.6.6 @tarojs/plugin-platform-h5: 3.6.6 => 3.6.6 @tarojs/plugin-platform-jd: 3.6.6 => 3.6.6 @tarojs/plugin-platform-qq: 3.6.6 => 3.6.6 @tarojs/plugin-platform-swan: 3.6.6 => 3.6.6 @tarojs/plugin-platform-tt: 3.6.6 => 3.6.6 @tarojs/plugin-platform-weapp: 3.6.6 => 3.6.6 @tarojs/react: 3.6.6 => 3.6.6 @tarojs/runtime: 3.6.6 => 3.6.6 @tarojs/shared: 3.6.6 => 3.6.6 @tarojs/taro: 3.6.6 => 3.6.6 @tarojs/taro-loader: 3.6.6 => 3.6.6 @tarojs/webpack5-runner: 3.6.6 => 3.6.6 babel-preset-taro: 3.6.6 => 3.6.6 eslint-config-taro: 3.6.6 => 3.6.6 react: ^18.0.0 => 18.0.0
引入 'core-js/stable' 这个包转换下就行了吧
相关平台
H5
浏览器版本: android 7 使用框架: React
复现步骤
H5在android 7中的webview中打开会白屏,报错信息 Uncaught TypeError: Object.entries is not a function
期望结果
正常
实际结果
错误
环境信息