[Bug] --smoke-test
crashes with TypeError: previewStats.toJson is not a function
#397
Closed
1 task done
Labels
What version of
vite
are you using?2.9.9
System info and storybook versions
System:
OS: Linux 5.4 Debian GNU/Linux 11 (bullseye) 11 (bullseye)
CPU: (4) x64 Intel(R) Xeon(R) Platinum 8370C CPU @ 2.80GHz
Binaries:
Node: 16.14.2 - /usr/local/bin/node
Yarn: 1.22.18 - /usr/bin/yarn
npm: 8.5.0 - /usr/local/bin/npm
npmPackages:
@storybook/builder-vite: ^0.1.35 => 0.1.35
@storybook/react: ^6.5.6 => 6.5.6
Describe the Bug
Storybook crashes with a
@storybook/builder-vite
setup when run withstart-storybook --smoke-test
command.Crash logs
The interesting part here is
which points to these lines in Storybook core: https://github.com/storybookjs/storybook/blob/61d6451c4bfc7eb86f1f7ea2ee6d64b9a5d3a976/lib/core-server/src/build-dev.ts#L111
Logging some of those lines:
I'm not familiar with the internals of Storybook, but
builder-vite
pass/generate thosepreviewResult
to Storybook core somehow?Link to Minimal Reproducible Example
I think all setups should be crashing when run with
--smoke-test
flag. I can set up a separate minimal repo if this is still necessary.Participation
The text was updated successfully, but these errors were encountered: