-
-
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
Error handling broken in Storybook 5.2 #8087
Comments
I believe the problem is related to preview hooks. First, it seemed like it was
I believe this code needs an exception handler and ultimately needs to call |
@tmeasday do you think we can find a way to enable chromatic testing for those error stories? |
@Hypnosphi do you have any ideas about how that could work? Chromatic is designed so that an error needs to be resolved before you can start accepting/denying changes as a matter of course. In any case we want to capture the actual error div etc which falls outside of the way that Chromatic captures (we get the contents of the |
yes, I think I can just add a story that renders iframes with other stories |
Whoopee!! I just released https://github.com/storybookjs/storybook/releases/tag/v5.3.0-alpha.0 containing PR #8097 that references this issue. Upgrade today to try it out! You can find this prerelease on the Closing this issue. Please re-open if you think there's still more to do. |
Yippee!! I just released https://github.com/storybookjs/storybook/releases/tag/v5.2.1 containing PR #8097 that references this issue. Upgrade today to try it out! |
Probably needs another fix, but better to get something out for the influx of new users. Will close this after we finalize what's in #8100 |
Shiver me timbers!! I just released https://github.com/storybookjs/storybook/releases/tag/v5.3.0-alpha.9 containing PR #8100 that references this issue. Upgrade today to try it out! You can find this prerelease on the Closing this issue. Please re-open if you think there's still more to do. |
Yowza!! I just released https://github.com/storybookjs/storybook/releases/tag/v5.2.2 containing PR #8100 that references this issue. Upgrade today to try it out! |
In 5.2, errors are silently swallowed.
In 5.1, story errors would result in the stack trace showing up in the main window:
To repro in monorepo:
Open
Core > Errors > story throws exception
(and compare torelease/5.1
branch).The text was updated successfully, but these errors were encountered: