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
{{ message }}
Repository navigation
[transformer-directives] @apply do not recognize multiple values in less in Astro #4908
I met same problem as you. Google AI give me a solution as follows:
`// unocss.config.ts
import { defineConfig } from 'unocss';
import transformerDirectives from '@unocss/transformer-directives';
export default defineConfig({
// ... other configs
transformers: [
transformerDirectives({
enforce: 'pre' // Ensures UnoCSS processes @apply before other preprocessors
})
]
});`
It solves my issue. You may have a try and see if it works for you.
Activity
AlexRen94 commentedon Dec 22, 2025
I met same problem as you. Google AI give me a solution as follows:
`// unocss.config.ts
import { defineConfig } from 'unocss';
import transformerDirectives from '@unocss/transformer-directives';
export default defineConfig({
// ... other configs
transformers: [
transformerDirectives({
enforce: 'pre' // Ensures UnoCSS processes @apply before other preprocessors
})
]
});`
It solves my issue. You may have a try and see if it works for you.
OverflowCat commentedon Dec 25, 2025
Looks like it is caused by LESS adding an extra comma:
OverflowCat commentedon Dec 25, 2025
Related to less/less.js#4354.