Skip to content
New issue

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

在App里面用componentDidCatchError监听不到页面组件里的错误 #7952

Closed
laibao101 opened this issue Nov 2, 2020 · 3 comments
Closed
Labels
F-react Framework - React T-tt Target - 编译到字节跳动小程序 V-3 Version - 3.x

Comments

@laibao101
Copy link

相关平台

字节跳动小程序

复现仓库

[https://github.com 暂无](https://github.com 暂无)
小程序基础库: 1.80.1.16
使用框架: React

复现步骤

在App里面用componentDidCatchError监听。在页面里面写个 undefined.a

Taro.onError也无法监听到

期望结果

有能全局监听错误的地方

实际结果

没有地方能监听页面里组件的错误

环境信息

Taro CLI 3.0.14 environment info:
    System:
      OS: macOS 10.14.5
      Shell: 5.3 - /bin/zsh
    Binaries:
      Node: 14.9.0 - /usr/local/bin/node
      Yarn: 1.22.10 - /usr/local/bin/yarn
      npm: 6.14.8 - /usr/local/bin/npm
    npmPackages:
      @tarojs/components: 3.0.8 => 3.0.15
      @tarojs/mini-runner: 3.0.8 => 3.0.15
      @tarojs/react: 3.0.8 => 3.0.15
      @tarojs/runtime: 3.0.8 => 3.0.15
      @tarojs/taro: 3.0.8 => 3.0.15
      @tarojs/webpack-runner: 3.0.8 => 3.0.8
      babel-preset-taro: 3.0.8 => 3.0.8
      eslint-config-taro: 3.0.8 => 3.0.8
      react: ^16.10.0 => 16.14.0
      taro-ui: ^3.0.0-alpha.3 => 3.0.0-alpha.3
    npmGlobalPackages:
      typescript: 3.6.4
@taro-bot2 taro-bot2 bot added F-react Framework - React T-tt Target - 编译到字节跳动小程序 V-3 Version - 3.x labels Nov 2, 2020
@laibao101
Copy link
Author

laibao101 commented Nov 2, 2020

在微信小程序里面也有同样的问题

@Chen-jj
Copy link
Contributor

Chen-jj commented Dec 16, 2020

#8191

@Chen-jj Chen-jj closed this as completed Dec 16, 2020
@slogeor
Copy link

slogeor commented Jan 14, 2022

这个问题怎么关闭了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-react Framework - React T-tt Target - 编译到字节跳动小程序 V-3 Version - 3.x
Projects
None yet
Development

No branches or pull requests

3 participants