-
-
Notifications
You must be signed in to change notification settings - Fork 183
Labels
feat: hmrfeat: ssrp3-minor-bug 🔨An edge case that only affects very specific usage (priority)An edge case that only affects very specific usage (priority)
Description
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
System:
OS: macOS 13.1
CPU: (8) arm64 Apple M1 Pro
Memory: 116.52 MB / 16.00 GB
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 16.17.1 - ~/.nvm/versions/node/v16.17.1/bin/node
npm: 8.15.0 - ~/.nvm/versions/node/v16.17.1/bin/npm
Browsers:
Chrome: 111.0.5563.146
Safari: 16.2
Used Package Manager
npm
Logs
No response
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- The provided reproduction is a minimal reproducible example of the bug.
Neoniqkier-mc
Metadata
Metadata
Assignees
Labels
feat: hmrfeat: ssrp3-minor-bug 🔨An edge case that only affects very specific usage (priority)An edge case that only affects very specific usage (priority)