-
-
Notifications
You must be signed in to change notification settings - Fork 5k
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
CSS Modules composes with SASS files #15655
Labels
Comments
Could you tests if this works as expected in plain Vite + Vue? |
looks the same, apparently it's a vite problem itself |
Then it'd be great to open an issue there 👍 Feel free to link this one then |
@manniL looks it's related with vitejs/vite#10340 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Environment
Darwin
v16.15.1
3.0.0
1.0.0
[email protected]
vite
css
,webpack
,vite
-
-
Reproduction
File: assets/typo.module.scss
File: pages/index.vue
Describe the bug
The compose in CSS modules doesn't work with SCSS files.
In this case the scss file is loaded as regular css file, it's not compiled from scss to css,
when i try use other loader like (what i do in Nuxt2, where it's work):
I got error 500 with message:
Cannot read properties of undefined (reading 'length')
I tried with different loaders (postcss-loader, etc.) other aliases (@/) and the result always be the same
Additional context
No response
Logs
The text was updated successfully, but these errors were encountered: