-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Webpack Hot Reload not working in react Storybook 6.0-rc.9 #11602
Comments
Shiver me timbers!! I just released https://github.com/storybookjs/storybook/releases/tag/v6.0.0-rc.18 containing PR #11709 that references this issue. Upgrade today to try it out! You can find this prerelease on the Closing this issue. Please re-open if you think there's still more to do. |
@shilman I'm on storybook 6.0.21 and the storybook doesn't hot reload still any changes to custom webpack.config.js is this expected? |
Also confirm, using 6.0.21 and MiniCssExtractPlugin loader. HMR doesn't work.
Moreover, once I run On the version 5.2.8 HMR works fine |
HMR is not expected to work on webpack config files |
That's true, but I also need to extract CSS styles to a separate file then, just to make it available by static url, e.g. http://localhost:6006/2.css. If I disable HMR:
it works, but without hot reloading on styles. P.S. Just copy/paste MiniCssExtractPlugin from the official webpack website (https://webpack.js.org/plugins/mini-css-extract-plugin/#advanced-configuration-example) still no success. To confirm, using storybook v5 - it works. |
@ndelangen any ideas? |
I've already fixed that. |
@hamanovich is there a problem with |
@shilman can't surely answer, I used the default config from https://webpack.js.org/plugins/mini-css-extract-plugin/#advanced-configuration-example and @storybook/preset-scss together -> HMR doesn't work, and yarn storybook throws an error described above. Finally, I removed this preset -> and it works. |
Describe the bug
After changing a story the page reloads and I get following message in the browser console
To Reproduce
Expected behavior
A hot reload without page reload
Screenshots
System:
Please paste the results of
npx -p @storybook/cli@next sb info
here.The text was updated successfully, but these errors were encountered: