gaearon

react-transform-catch-errors

React Transform that catches errors inside React components

by gaearon

JavaScript

JavaScript100%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

2 of 6 standards met

Community profile →
42
✓README○License○Contributing✓Code of Conduct○Issue Template○PR Template

Recent PRs & issues

Quiet · 4 discussions · Last activity 10y ago
See all on GitHub →
gitdust

Hi, I do exactly what you have written,but I got errors on the browser's console pannel,not on the page.

gitdust · 9y ago
steinso

It would be great if there were some more documentation on how to use a local component as the ErrorReporter. I have been struggling with this for some time. Using relative paths did not work, and setting a webpack alias did not seem to work either. I get undefined as the value of ErrorReporter if I use a default export for the component: And i get an empty object if using module.exports.

steinso · 10y ago
alexkvazos

I am currently using React Hot Loader 1.3 and I want to know if I can use this plugin in some way without loosing React Hot Loader, I do not want to switch to react-transform-hmr. Thanks, Alex

alexkvazos · 4y ago
dtinth

At Taskworld we’re using this in production to be able to catch React rendering errors and display a graceful error message in a web app, and also to send an object containing props and state (stripped of sensitive data) to an error tracking system. This PR adds several addition props to pass to : The of the component that crashed. The state object of the component that crashed. The props passed to the component that crashed. (Previously, I’ve been monkeypatching to augment method with a try...catch block. Moving towards ES6 components, such monkeypatching isn’t possible anymore.)

dtinth · 9y ago
Structured data for AI agents

Repository: gaearon/react-transform-catch-errors. Description: React Transform that catches errors inside React components Stars: 184, Forks: 20. Primary language: JavaScript. Languages: JavaScript (100%). Latest release: v1.0.2 (10y ago). Open PRs: 0, open issues: 4. Last activity: 10y ago. Community health: 42%. Top contributors: gaearon, jamiebuilds, jedwards1211, colinmeinke, davecoates, apaleslimghost, weblancaster, zalmoxisus, hoegrammer, smashercosmo and others.