-
Notifications
You must be signed in to change notification settings - Fork 46.9k
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
logCapturedError ate our error message #16605
Comments
It's hard to comment further without a reproducing example. Could you try to reproduce just the error in a new isolated project, and see if the problem persists? |
I figured it out. It's a Firefox bug. |
manifest.json {
"$schema": "http://json.schemastore.org/chrome-manifest",
"name": "Debugger test",
"version": "1.5.3",
"manifest_version": 2,
"permissions": ["http://example.com/*", "webNavigation"],
"background": {
"scripts": ["/background.js"]
},
"content_scripts": [{ "matches": ["http://example.com/"], "js": ["/react.js", "/react-dom.js", "/content.js"] }]
} function App() {
throw new Error('Render failed')
}
ReactDOM.render(React.createElement(App), document.body.children[0]) |
This bug caused by Firefox will not show error in a content script nither emit a window.onerror event |
Please consider disabling the "pause on exception" preservation for Firefox content script. (Can be detected by |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contribution. |
Do you want to request a feature or report a bug? Bug
What is the current behavior?
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. Your bug will get fixed much faster if we can run your code and it doesn't have dependencies other than React. Paste the link to your JSFiddle (https://jsfiddle.net/Luktwrdm/) or CodeSandbox (https://codesandbox.io/s/new) example below:
Our application is run in a very complicated environment. It's hard to do that.
What is the expected behavior?
I change the bundled file, add
console.error(error)
inlogCapturedError
And the correct error and it's stack is printed.
Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?
I'm debugging in Firefox Developement Edition. And the code is running in the WebExtension environment. Please consider if the following code is correct in Firefox
The text was updated successfully, but these errors were encountered: