-
Notifications
You must be signed in to change notification settings - Fork 190
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
[bug] :deep Compilation error #871
Comments
Shouldn't that syntax be compiled by Vue before it reaches lightningcss? That is not valid CSS syntax. |
Vue loader always handles it last {
test: /\.less$/,
use: ['vue-style-loader', 'css-loader', 'less-loader'],
type: 'javascript/auto',
}, |
Why? Shouldn't it run first? |
Rspack related documentation always requires this to be written. |
See detail: https://rspack.dev/guide/tech/vue#vue-3 |
I've started seeing this since upgrading to Vite 6.x, while using lightningcss. My relevant vite.config.ts look like this: css: {
transformer: 'lightningcss',
},
build: {
cssMinify: 'lightningcss',
} and I see this when running dev or build:
It looks like vitejs/vite#495 didn't include this? |
Again, why is this not being compiled to valid CSS before reaching Lightning CSS? |
This is happening to me as well. I am also using the new Vite 6.x. My configuration is very minimal:
It sounds like from what @devongovett is saying is that Vue needs to run first and then lightning CSS. But that doesn't seem like it is happening. Here is the error:
I am using |
Has anyone filed an issue on the vite side yet? Seems like the problem is over there |
Created vitejs/vite-plugin-vue#507 |
Less source code
Compile into CSS
Will report an error,in
"lightningcss": "^1.28.2",
The text was updated successfully, but these errors were encountered: