Skip to content
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

Type 'Preset<Theme>' is not assignable to type 'PresetOrFactory<any> | PresetOrFactory<any>[]' #85

Open
nurgeldiserikbay opened this issue Oct 24, 2024 · 1 comment

Comments

@nurgeldiserikbay
Copy link

I can't include preset-theme v0.13.0 to unocss 0.63.4 and nuxt 3. Get some ts error

Type 'Preset' is not assignable to type 'PresetOrFactory | PresetOrFactory[]'.
Type 'Preset' is not assignable to type 'Preset'.
Types of property 'rules' are incompatible.
Type 'Rule[] | undefined' is not assignable to type 'Rule[] | undefined'.
Type 'Rule[]' is not assignable to type 'Rule[]'.
Type 'Rule' is not assignable to type 'Rule'.
Type '[RegExp, DynamicMatcher]' is not assignable to type 'Rule'.
Type '[RegExp, DynamicMatcher]' is not assignable to type 'DynamicRule'.
Type at position 1 in source is not compatible with type at position 1 in target.
Type 'DynamicMatcher' is not assignable to type 'DynamicMatcher'.
Types of parameters 'context' and 'context' are incompatible.
Type 'Readonly<RuleContext>' is not assignable to type 'Readonly<RuleContext>'.
The types of 'generator.userConfig.rules' are incompatible between these types.
Type 'Rule[] | undefined' is not assignable to type 'Rule[] | undefined'.
Type 'Rule[]' is not assignable to type 'Rule[]'.
Type 'Rule' is not assignable to type 'Rule'.
Type 'StaticRule' is not assignable to type 'Rule'.
Type '[string, CSSObject | CSSEntries, (RuleMeta | undefined)?]' is not assignable to type '[RegExp, DynamicMatcher, RuleMeta]'.
Type at position 0 in source is not compatible with type at position 0 in target.
Type 'string' is not assignable to type 'RegExp'.

@Dunqing
Copy link
Member

Dunqing commented Oct 25, 2024

Just types mismatch, so it doesn't affect that you use this plugin, you can ignore the error or as any I will fix later

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants