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

fix: prevent crashing on "--smoke-test" #400

Merged

Conversation

AriPerkkio
Copy link
Contributor

Fixes #397.

Storybook expects stats to match Stats interface of webpack: https://github.com/webpack/webpack/blob/main/types.d.ts#L11243-L11253.

This type-mismatch is caused by @storybook/core-common's Builder and will be fixed by storybookjs/storybook#18377.

- Pass null as optional Stats instead of incorrect structure
@IanVS IanVS merged commit 2ad9c38 into storybookjs:main May 31, 2022
@IanVS
Copy link
Member

IanVS commented May 31, 2022

Thanks @AriPerkkio!

@AriPerkkio AriPerkkio deleted the fix/prevent-crashing-on-smoke-test branch May 31, 2022 18:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] --smoke-test crashes with TypeError: previewStats.toJson is not a function
2 participants