-
-
Notifications
You must be signed in to change notification settings - Fork 6.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 from '...' not works #3092
Comments
I'm also running into this on Windows. Seems related to:
The following Vite configuration fixes my errors: css: {
modules: {
// @ts-ignore
root: '.',
},
}, |
I got the same error, and if you put
this is going to work on Windows, but it is going to give an error on Mac. |
I can't reproduce this on MacOS 12.2.1 too. Looks like it's indeed a Windows issue, though I don't have the machine now. Would be great if someone can give an update if this is still happening for them. |
it's still reproducible |
Reproducible on Windows 11 with Vite 2.8.6. For a project in |
Vite depends on |
This is fixed now with postcss-modules v5 |
Describe the bug
Compose class names from other file is not working. Vite fails to resolve the path
Aliases inside "composes from" not work as well
Reproduction
https://github.com/xSorc/test-vite-composes-from
System Info
Output of
npx envinfo --system --npmPackages vite,@vitejs/plugin-vue --binaries --browsers
:Used package manager: yarn
Logs
Before submitting the issue, please make sure you do the following
The text was updated successfully, but these errors were encountered: