presetWind() not working
valle-xyz opened this issue · comments
valleXYZ commented
I import
import presetWind from '@unocss/preset-wind'
and use it like
presets: [
presetUno(),
presetAttributify(),
presetIcons({
scale: 1.2,
warn: true,
}),
presetTypography(),
presetWebFonts({
fonts: {
sans: 'DM Sans',
serif: 'DM Serif Display',
mono: 'DM Mono',
},
}),
presetWind(),
],
But it is not working:
Type 'Preset<Theme>' is not assignable to type 'Preset<{}> | Preset<{}>[]'.\n Type 'Preset<Theme>' is not assignable to type 'Preset<{}>'.\n Types of property 'rules' are incompatible.\n Type 'Rule<Theme>[] | undefined' is not assignable to type 'Rule<{}>[] | undefined'.\n Type 'Rule<Theme>[]' is not assignable to type 'Rule<{}>[]'.\n Type 'Rule<Theme>' is not assignable to type 'Rule<{}>'.\n Type '[RegExp, DynamicMatcher<Theme>]' is not assignable to type 'Rule<{}>'.\n Type '[RegExp, DynamicMatcher<Theme>]' is not assignable to type '[string, CSSObject | CSSEntries]'.\n Type at position 0 in source is not compatible with type at position 0 in target.\n Type 'RegExp' is not assignable to type 'string'.
Anthony Fu commented
presetUno
already include presetWind
you don't need to do it manually again.
valleXYZ commented
I found the error on my side. <lg:hidden
was not supported anymore. I used another combination.