-
-
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
Dev errors getting swallowed #20161
Comments
We found that the culprit was the following two lines. A direct access to the cache:
A call to a function that accesses the cache:
Despite both lines being wrapped in try/catch, when something goes wrong in the cache it takes all of Node down in strange ways. Since #20136 most recently touched the cache, we are trying to get back to the previous state for now. |
Possible workarounds:
|
After a lot of debugging together @shilman and I discovered that I might investigate a replacement for the current cache mechanism. |
Ta-da!! I just released https://github.com/storybookjs/storybook/releases/tag/v7.0.0-beta.2 containing PR #20177 that references this issue. Upgrade today to the
Closing this issue. Please re-open if you think there's still more to do. |
When running in dev mode, some errors are getting swallowed with the following error message:
This code is breaking:
https://github.com/storybookjs/storybook/blob/next/code/lib/cli/src/dev.ts#L20-L35
The weird error handling code is to deal with errors being thrown OR a webpack Stats object being throw, and the code used to be
However, a recent update changed the code to:
Wrapping the calling code in
withTelemetry
somehow leads to the error getting unhandled. Although how this happens is unclear.The text was updated successfully, but these errors were encountered: