-
-
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]: HMR is broken for bundled CSS in Storybook v8 with Vite #26812
Comments
Probable dupe of #26881 |
@shilman if reloading is sufficient to get the latest update is sufficient to workaround the issue in #26881, then this is not a duplicate... In this case here, the only way to get the latest CSS is to restart the server. |
@Th3S4mur41 my bad, thanks for clarifying! Re-opening |
Fyi @valentinpalkovic - possibly related to your other issues but not a duplicate |
After debugging and trying a few things, Vite seems to ignore files in I don't know whether we can do anything about this. Therefore, I would close this issue. |
I've tried to fix it using a bunch of of wayt to configure the watcher setting of the vite config like e.g. // vite.config.mjs
import { defineConfig } from 'vite';
export default defineConfig({
build: {
watch: {
exclude: ['node_modules'],
include: ['src/**', 'dist/**']
}
}
}); Unfortunately, that didn't work. This is probably related to vitejs/vite#8619 Changing the output of my postcss to the |
Describe the bug
After upgrading to v8, HMR is no longer working for imported bundled CSS
Storybook needs to be restarted in order to see the changes
To Reproduce
https://stackblitz.com/edit/storybook-issue-26881
Note
index.css is being compiled in a separate process with a watcher.
preview.ts
System
Additional context
No response
The text was updated successfully, but these errors were encountered: