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
FAST_REFRESH=true causes compilation error (Webpack 5 support) #13745
Comments
It works if I remove |
Storybook has a dependency to @pmmmwh/react-refresh-webpack-plugin@0.4.2, which appears to not have webpack 5 support. https://github.com/pmmmwh/react-refresh-webpack-plugin/blob/main/CHANGELOG.md#fixes
Storybook isn't (up to my knowledge) compatible with webpack 5 until 6.2. @shilman |
That's correct. We're shooting for webpack 5 support in 6.2. I guess we'll need to figure out fast refresh in webpack 5 or live without it for now. |
Oooh gotya! 👍 |
Hate to be this guy, but any rough ETA on when 6.2 would be release? Days, weeks, months? |
@timkindberg going to beta this week, final in about a month (knock wood) |
Hi, fast refresh still doesn't work for me. Whether I use
|
@rtrembecky the same problem |
I'm seeing this problem too ("no longer a waterfall hook, but a bailing hook instead") -- it does indeed look like a new problem, recently appearing. I see some deprecation warnings before, which I don't know if they are relevant:
|
@shilman SOS!!! |
Try to remove yarn.lock and reinstall dependencies. |
@iseredov tried now, didn't work. |
Ditto: removed yarn.lock cleared caches and ran |
Try upgrading to the latest prerelease:
Does that fix it? It contains this PR that's supposed to fix it: #15616 |
In fact, I'm going to close this as fixed in #15616 Please upgrade and let me know if it's not working. If so, I'll reopen! |
@shilman I've not been able to check this because my storybook comes up empty on |
@dcwarwick perhaps there's a regression in #15399? if you could open a new issue with a reproduction that would be really helpful https://storybook.js.org/docs/react/contribute/how-to-reproduce |
Opened issue #15746 |
@shilman It works for us too with |
My workaround is to disable fast refresh by running: |
Describe the bug
FAST_REFRESH=true causes compilation error.
Same as if I would configure .storybook/main.js or add plugin manually into config.plugins.
To Reproduce
Steps to reproduce the behavior:
FAST_REFRESH=true start-storybook
The same project builds successfully with webpack & @pmmmwh/react-refresh-webpack-plugin.
The same storybook compiles without FAST_REFRESH=true
Expected behavior
Succesful compilation
System
Packages:
The text was updated successfully, but these errors were encountered: