-
Notifications
You must be signed in to change notification settings - Fork 27k
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
Custom syntax error / HMR error page #4813
Comments
Looks like it would be a simple addition: client/index.js ErrorDebugComponent = passedDebugComponent
ErrorComponent = await pageLoader.loadPage('/_error') to ErrorDebugComponent = await pageLoader.loadPage('/_error-debug')
ErrorComponent = await pageLoader.loadPage('/_error') Actually there are a million other places that Maybe an alternative would be to pass a prop to |
Linking to source code will be trivial to add after #4639 lands, as errors get rendered by react-error-overlay which has this feature built in. |
This PR adds links to the [react-error-overlay](https://www.npmjs.com/package/react-error-overlay). This allows a developer to open a stack trace in its own editor. ![codelinking](https://user-images.githubusercontent.com/1265681/44278860-a63e0a80-a24f-11e8-9c69-c5365c026c58.gif) Closes #4813
Feature request
I would like to modify the error page for syntax errors.
lib/error-debug
I believe.My idea is to linkify the stack trace so I can open it in my IDE.
I do not see a way of doing it at preset.
The text was updated successfully, but these errors were encountered: