Skip to content
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

Closed
ndelangen opened this issue May 21, 2017 · 22 comments
Closed

Improve error reporting with react-error-overlay #1088

ndelangen opened this issue May 21, 2017 · 22 comments

Comments

@ndelangen
Copy link
Member

https://www.npmjs.com/package/react-error-overlay

https://twitter.com/dan_abramov/status/863482034865483776

@m19c
Copy link

m19c commented Jun 30, 2017

Mine. PR soon.

@ndelangen ndelangen removed this from the v3.2.0 milestone Jul 27, 2017
@ndelangen
Copy link
Member Author

@MrBoolean Are you still interested in adding this to storybook?

@ijajmulani
Copy link

ijajmulani commented Sep 13, 2017

Hi, I would like to solve this.
This is my first open source contribution, So could you guide me in this?

I have cloned the repo.

@ijajmulani
Copy link

Thanks @thongdong7. I get a fair idea about will let you know once it done.

@ndelangen
Copy link
Member Author

@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?
https://now-examples-slackin-nqnzoygycp.now.sh/
That way we can chat a bit more easily.

@ijajmulani
Copy link

@ndelangen thanks for sending slack request. I have joined storybook on slack.

@ritch
Copy link

ritch commented Nov 12, 2017

Any update on this? Is this difficult to add manually?

@armandabric
Copy link
Contributor

You could start to use it by creating a global decorator: https://gist.github.com/Spy-Seth/25bdaf2a6aa8c37228d47db79cfd0977

@stale
Copy link

stale bot commented Dec 28, 2017

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!

@stale stale bot added the inactive label Dec 28, 2017
@ndelangen
Copy link
Member Author

@Spy-Seth Looks like you might be able to make a PR, adding this for everyone? 🙇

@stale stale bot removed the inactive label Dec 28, 2017
@armandabric
Copy link
Contributor

armandabric commented Dec 30, 2017

Did you mean to add the gist as an official decorator inside storybook mono-repo? Or to activate react-error-overlay by default?

@ndelangen
Copy link
Member Author

Activate it by default seems good to me, do you agree?

@armandabric
Copy link
Contributor

In the preview view it's a good idea yes.

I just need to find where to it in the source code 😄

@ndelangen
Copy link
Member Author

I'd assume it's something you configure in the webpack.config.js ?

That'd be located here:
https://github.com/storybooks/storybook/blob/master/app/react/src/server/config/webpack.config.js

@ndelangen
Copy link
Member Author

The webpack stuff got moved to a new package core, should not be to difficult to find though.

Are you still interested in making a PR @Spy-Seth ?

@tsiq-swyx
Copy link
Contributor

after looking at how create-react-app now does things i am not confident that react-error-overlay is all that is needed for this stuff. do we need [webpackHotDevClient](https://github.com/facebook/create-react-app/blob/25184c4e91ebabd16fe1cde3d8630830e4a36a01/packages/react-dev-utils/webpackHotDevClient.js)? when i tried implementing just react-error-overlay, nothing happened when i intentionally threw an error on my storybook. it seems that webpackHotDevClient reexports ErrorOverlay anyway so it looks like i just need to make that work. Now i have no idea how to configure webpackHotDevClient as just adding it to my webpack.config.js doesn't do anything.

@swyxio
Copy link
Contributor

swyxio commented Jan 31, 2018

future people looking at this - this is solved with the undocumented middleware.js option. #2890

might look into doing a PR for this to make it default behavior in storybook

@Hypnosphi
Copy link
Member

@sw-yx sure, go for it!

@swyxio
Copy link
Contributor

swyxio commented Feb 1, 2018

done!

@stale
Copy link

stale bot commented Mar 18, 2018

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!

@stale stale bot added the inactive label Mar 18, 2018
@tsiq-swyx
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests