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
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.
Describe the bug
When composing a class from another file in CSS Modules, an error is not emitted if the class is not found.
This is akin to not erroring when trying to import a missing export from another JS file, and can lead to bugs.
This is fixed by #16018, but wanted to file it for tracking purposes since this seems like a pretty major issue that wasn't reported.
(Originally reported in privatenumber/vite-css-modules#2)
Reproduction
https://stackblitz.com/edit/vitejs-vite-w9i5ct?file=src%2Fstyle.module.css
Steps to reproduce
style.modules.css
, observe thatlarge-text
is imported from./utils.module.css
utils.module.css
, observe that it's an empty fileundefined
is passed in as a class:System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: