You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hot module reloading for styles must have a bug that renders storybook useless.
Change variable $button-border-radius: from 4px to 8px and HMR rebuilds and works.
Change variable $button-border-radius: back to 4px and HMR does NOT rebuild. No update.
Change variable $button-border-radius: to 6px and HMR does NOT rebuild. No update.
Change variable $button-border-radius: to 10px and HMR rebuilds and works.
Change variable $button-border-radius: back to 4px` and HMR does NOT rebuild. No update.
So what I guess is happening is that there is some kind of hashing and caching going on within the HMR pipeline that prevents HMR to properly pick up changes.
Unfortunately this renders storybook for us totally useless since we cannot get HMR reliable when changing styles.
Does anybody know about a fix or a workaround?
Latest fresh install of storybook with @kadira/storybook v2.35.3
We have the following .storybook/webpack.config.js:
@BerndWessels from what I remember, i was having a similar issue. It may not be helpful, but I've since begun to run style-loader in singleton mode, and it seemingly has helped, but it's definitely not a cure-all. style-loader?singleton
Hi
Hot module reloading for styles must have a bug that renders
storybook
useless.$button-border-radius:
from4px
to8px
and HMR rebuilds and works.$button-border-radius:
back to4px
and HMR does NOT rebuild. No update.$button-border-radius:
to6px
and HMR does NOT rebuild. No update.$button-border-radius:
to10px
and HMR rebuilds and works.$button-border-radius:
back to 4px` and HMR does NOT rebuild. No update.So what I guess is happening is that there is some kind of hashing and caching going on within the HMR pipeline that prevents HMR to properly pick up changes.
Unfortunately this renders
storybook
for us totally useless since we cannot get HMR reliable when changing styles.Does anybody know about a fix or a workaround?
Latest fresh install of
storybook
with@kadira/storybook v2.35.3
We have the following
.storybook/webpack.config.js
:In
src
I have thissrc/component.jsx
:and this
styles.scss
:and this
theme.scss
:and this is the
stories/index.js
:The text was updated successfully, but these errors were encountered: