Attributify not work
Rasool-deldar opened this issue · comments
Describe the bug
I am using the @unocss/nuxt version and you wrote that you support Attributify, but the editor gives an error and I expect this error to be fixed.
And in this situation, the description does not show in the editor, please fix it
Environment
Plugin Version: 1.4.4
IDE Version: 2023.3.3
Unocss Version(in package.json): 0.58.4
Unocss Config:
(Share your uno.config.js/ts or vite config here)
// uno.config.ts
import { defineConfig } from 'unocss';
import transformerDirectives from '@unocss/transformer-directives';
import transformerCompileClass from '@unocss/transformer-compile-class';
export default defineConfig({
details: true,
transformers: [
transformerDirectives({
// the defaults
applyVariable: ['--at-apply', '--uno-apply', '--uno'],
// or disable with:
// applyVariable: false
}),
transformerCompileClass(),
],
});
Hello, please add presetAttributify()
to you unocss config to enable attributify support
will be fixed in next update
will be fixed in next update
Thank you 🌹🌹🌹
Wait, It is caused by your configuration file, if you are using standalone unocss configuration, then please do not define the configuration in nuxt.config because it will only read one configuration
You can put presetAttributify()
into uno.config.ts