We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
H5
git@github.com:tangbzai/Taro-innerAudioContext-error-demo.git 浏览器版本: Chrome 113.0.5672.127(正式版本) (64 位) 使用框架: React
onError 能捕获到错误
网络显示资源加载失败,控制台出现错误,onError 捕获不到错误
Taro CLI 3.6.7 environment info: System: OS: Windows 10 10.0.17763 Binaries: Node: 16.13.2 - C:\Program Files\nodejs\node.EXE Yarn: 1.22.5 - C:\Program Files (x86)\Yarn\bin\yarn.CMD npm: 8.1.2 - C:\Program Files\nodejs\npm.CMD npmPackages: @tarojs/cli: ^3.6.7 => 3.6.7 @tarojs/components: 3.6.7 => 3.6.7 @tarojs/helper: 3.6.7 => 3.6.7 @tarojs/plugin-framework-react: 3.6.7 => 3.6.7 @tarojs/plugin-platform-alipay: 3.6.7 => 3.6.7 @tarojs/plugin-platform-h5: 3.6.7 => 3.6.7 @tarojs/plugin-platform-jd: 3.6.7 => 3.6.7 @tarojs/plugin-platform-qq: 3.6.7 => 3.6.7 @tarojs/plugin-platform-swan: 3.6.7 => 3.6.7 @tarojs/plugin-platform-tt: 3.6.7 => 3.6.7 @tarojs/plugin-platform-weapp: 3.6.7 => 3.6.7 @tarojs/react: 3.6.7 => 3.6.7 @tarojs/runtime: 3.6.7 => 3.6.7 @tarojs/shared: 3.6.7 => 3.6.7 @tarojs/taro: 3.6.7 => 3.6.7 @tarojs/webpack5-runner: 3.6.7 => 3.6.7 babel-preset-taro: 3.6.7 => 3.6.7 eslint-config-taro: 3.6.7 => 3.6.7 react: ^18.0.0 => 18.2.0
复现代码库 Github 地址:https://github.com/tangbzai/Taro-innerAudioContext-error-demo
看源码后一点小的见解:InnerAudioContext.ts 的 errorStack 没有在 onerror 时调用 trigger 方法 所以没有触发(BackgroundAudioManager 好像同样没有触发)
errorStack
onerror
trigger
BackgroundAudioManager
我尝试修改源码后发现 Taro.InnerAudioContext.onErrorDetail(onError 的参数) 不知如何创建,只能麻烦大佬们帮忙修复该问题了,非常感谢!
Taro.InnerAudioContext.onErrorDetail
onError
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
相关平台
H5
复现仓库
git@github.com:tangbzai/Taro-innerAudioContext-error-demo.git
浏览器版本: Chrome 113.0.5672.127(正式版本) (64 位)
使用框架: React
复现步骤
期望结果
onError 能捕获到错误
实际结果
网络显示资源加载失败,控制台出现错误,onError 捕获不到错误
环境信息
补充信息
复现代码库 Github 地址:https://github.com/tangbzai/Taro-innerAudioContext-error-demo
看源码后一点小的见解:InnerAudioContext.ts 的
errorStack
没有在onerror
时调用trigger
方法 所以没有触发(BackgroundAudioManager
好像同样没有触发)我尝试修改源码后发现
Taro.InnerAudioContext.onErrorDetail
(onError
的参数) 不知如何创建,只能麻烦大佬们帮忙修复该问题了,非常感谢!The text was updated successfully, but these errors were encountered: