-
-
Notifications
You must be signed in to change notification settings - Fork 154
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
HMR doesn't work when using useCssModule
with SSR
#146
Comments
Start a new pull request in StackBlitz Codeflow. |
It seems SCSS is not necessary to reproduce. It doesn't work when editing CSS module styles + using |
useCssModule
with SSR
Hello! If it only reproduce in ssr mode, is it possible to solve this problem? |
I'm experiencing the same issue. I'm using Nuxt (for context) with |
Same here. Nuxt. but im not editing mixins like in comment above, im editing scss module.
|
Exact same issue here. When i change and save a file thats imported into my main.scss, the hmr wont update despite the terminal saying the hmr has updated. Whenever i then save the main.scss, the styles on the frontend actually get updated, really need a fix for this |
Describe the bug
Bug with HMR, CSS Modules and SCSS mixins imported with vite.
Please see reproduction and link to issue in nuxt.
@danielroe has also managed to reproduce this bug. I've attached his reproduction link.
After updating imported scss mixin in
_buttons.scss
styles for<button>
just disappear.Try to edit
_buttons.scss
style properties and you will see default button styles after HMR.But if you modify
app.vue
after modifying_buttons.scss
you will see HMR working correct.Reproduction
https://stackblitz.com/edit/github-cbd5fr?file=vite.config.js
Steps to reproduce
No response
System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: