-
Notifications
You must be signed in to change notification settings - Fork 801
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
Cryptic error using webpack v2, webpack-dev-server v2, RHL v3 #342
Comments
I also have this error. In order to have the actual error, I have to put a breakpoint on the following line: return React.createElement(this.props.errorReporter, { error: error }); It seems that |
This seems to be the same issue as #312, want to confirm this is fixed in |
@calesce One thing I noticed, I don't know if this is redbox related but I'm not getting sourcemapped stacktraces in redbox. When I switch to vanilla error handling (console, no redbox) I get stacktraces. Have you experienced this? |
@nathanmarks Yeah, I'm seeing the same thing. I believe it should be handled by Redbox. Interestingly, on their README they recommend adding I also thought that the source maps worked for RHL3 Redbox previously, but maybe I'm mis-remembering. |
@nathanmarks Ok, it looks like Redbox stack traces are only sourcemapped with |
@calesce That's a bit rubbish. How do you feel about removing redbox as the default error reporter and using the console instead? |
@nathanmarks Yeah I'd like to see if there's a workaround first (or at the very least at least do |
@calesce the issue is fixed in |
@nathanmarks: We should probably move this to another thread, but I think Redbox will probably be best for now, even though it's not perfect. Adding console reporting won't be any better, since the stack trace will still be bad with Also, I'm going to close this issue, since this was fixed in the latest beta. |
Fixes error reporting - see: gaearon/react-hot-loader#342
Confirmed that upgrading |
In the process of upgrading a project to webpack v2, webpack-dev-server v2, react-hot-loader v3, and d3.js v4 (to take advantage of the new tree shaking features), I ran into the following error:
I was able to reproduce the error in redmountainmakers/kilntroller-ui@985f14d by simply adding a line
undefinedFunctionCall()
to the code. No indication was given as to the real nature of the error - when it originally showed up, I had to downgrade to webpack v1 to diagnose and fix it in development mode.Steps to reproduce:
Since there is a lot of code involved in making all this work, I'm not sure if this is the right repo to report this error against.
I'm not sure if this is related but it was also unexpected that one of my components'
componentWillUnmount
method was called without the correspondingcomponentDidMount
being called first. In the commit I referenced above, I added some debugging statements to mark the methods in question.The text was updated successfully, but these errors were encountered: