-
-
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
[Bug]: ExceedsStorageRange errors + sloooow experience with Storybook 8 + NextJS #26644
Comments
Hi @dgattey Thank you for raising this. I have a couple of things in mind:
|
@valentinpalkovic thanks for the quick response.
|
It might be that the docs are not correct anymore. Can you point me to the docs where it still has the useSWC flag documented? I've already linked you to the proper place in the migration doc. But essentially that's all you have to know:
|
@dgattey did you fix the issue about the flood of logs: I'm in the same case after upgrading from EDIT: seems we are not alone: https://github.com/sentience/storybook-nextjs-webpack-cache-issue-demo |
Since editing cannot link the PR, here it is: #29654 |
Describe the bug
I tried an upgrade to Storybook 8 and it works out of the box, but it's incredibly slow to build stories, and after building about 3-4 stories, clicking to the next one fails with a Rust-based error
ExceedsStorageRange
. We're also seeing TONS of logs like[webpack.cache.PackFileCacheStrategy] Skipped not serializable cache item 'SourceMapDevToolPlugin|__stories__-PaginationController-mdx.iframe.bundle.js': No serializer registered for ConcatSource
in the terminal when runningstorybook dev
, which seems related. Some stories still load but it's a mixed bag. Also lots of errors around serializing large strings. It appears to be trying to serialize the webpack config itself? Also errors withTerserWebpackPlugin
.It's sort of usable in dev, but building with
storybook build
results in a hard fail every time, with the sameExceedsStorageRange
as the cause and tons of printouts around the caching problems. Running with --debug-webpack just shows the webpack config and there's nothing unexpected there I can tell.We're using storybook 8.0.4,
@storybook/nextjs
8.0.4, react 18.2.0, and next 14.1.3, with SWC as the compiler and Webpack5.lazyCompilation
,fsCache
,useSWC
are all on, as isfastRefresh
. The only addon we have is@storybook/addon-essentials
(also 8.0.4).Probably related to caching woes but swapping between stories is ~30sec - 1 min to load most stories, but some are ~1 sec without much rhyme or reason. Storybook 7.6.x was around a second per story. A build takes 7+ minutes (to fail), up from about a minute with Storybook 7.6.x.
Maybe there's something obvious here, but I've tried also removing all webpack custom config from our
main.ts
in our Storybook setup and there's no change.To Reproduce
I can't share our private repo setup, but this does it:
Run
storybook build
with Storybook 8.0.4,@storybook/nextjs
8.0.4, react 18.2.0, and next 14.1.3, with SWC as the compiler and Webpack5.lazyCompilation
,fsCache
,useSWC
are all on, as isfastRefresh
. The only addon we have is@storybook/addon-essentials
(also 8.0.4).System
Additional context
No response
The text was updated successfully, but these errors were encountered: