You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I put a throw inside of a render function, and got this stacktrace:
Error caught: TypeError: Cannot read property '_currentElement' of null
at ReactCompositeComponentMixin._updateRenderedComponent (https://localhost/vendor.js:19381:53)
at ReactCompositeComponentMixin._performComponentUpdate (https://localhost/vendor.js:19363:11)
at ReactCompositeComponentMixin.updateComponent (https://localhost/vendor.js:19279:13)
at ReactPerf.measure.wrapper [as updateComponent] (https://localhost/vendor.js:11015:22)
at ReactCompositeComponentMixin.receiveComponent (https://localhost/vendor.js:19143:11)
at Object.ReactReconciler.receiveComponent (https://localhost/vendor.js:11151:23)
...
None of this is code I wrote, and none of this points to the component that failed. I'm using ES6 classes instead of React.createClass, which may or may not be relevant.
The text was updated successfully, but these errors were encountered:
MyClass.render not showing up in the stracktrace is very weird, but ultimately not something React does or even can manipulate. AFAIK the error is not re-thrown either (which sometimes messes up stack traces). Everything below that will only ever be internals really and uninteresting from a debugging perspective.
Which browser is this? Also, when all else fails, enable "pause on exception" in your browser and it usually points you to the problem even if the stack trace doesn't.
This is not the error you threw, but it is a second error that gets thrown later because React (currently) doesn't gracefully handle thrown errors (#2461).
I put a
throw
inside of a render function, and got this stacktrace:None of this is code I wrote, and none of this points to the component that failed. I'm using ES6 classes instead of React.createClass, which may or may not be relevant.
The text was updated successfully, but these errors were encountered: