-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Improve error reporting with react-error-overlay
#1088
Comments
Mine. PR soon. |
@MrBoolean Are you still interested in adding this to storybook? |
Hi, I would like to solve this. I have cloned the repo. |
I think here is how it work: In development webpack config, an entry to handle error is added before the main entry The react-error-overlay handles the error when occurs |
Thanks @thongdong7. I get a fair idea about will let you know once it done. |
@ijajmulani YES definitely I can help you, I can tell you about the codebase and help you find what you need. Can you join our slack? |
@ndelangen thanks for sending slack request. I have joined storybook on slack. |
Any update on this? Is this difficult to add manually? |
You could start to use it by creating a global decorator: https://gist.github.com/Spy-Seth/25bdaf2a6aa8c37228d47db79cfd0977 |
Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 60 days. Thanks! |
@Spy-Seth Looks like you might be able to make a PR, adding this for everyone? 🙇 |
Did you mean to add the gist as an official decorator inside storybook mono-repo? Or to activate |
Activate it by default seems good to me, do you agree? |
In the preview view it's a good idea yes. I just need to find where to it in the source code 😄 |
I'd assume it's something you configure in the That'd be located here: |
The webpack stuff got moved to a new package Are you still interested in making a PR @Spy-Seth ? |
after looking at how create-react-app now does things i am not confident that |
future people looking at this - this is solved with the undocumented might look into doing a PR for this to make it default behavior in storybook |
@sw-yx sure, go for it! |
done! |
Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 60 days. Thanks! |
i believe this was merged so someone should close this as resolved (i can't) for people from the future: the actual issue was switched to #2941 |
https://www.npmjs.com/package/react-error-overlay
https://twitter.com/dan_abramov/status/863482034865483776
The text was updated successfully, but these errors were encountered: